We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9538367 commit fe83267Copy full SHA for fe83267
IGC/Compiler/CISACodeGen/MemOpt.cpp
@@ -1134,9 +1134,7 @@ bool MemOpt::mergeLoad(LoadInst* LeadingLoad,
1134
if (!ProfitVectorLengths.count(TypeSizeInBits))
1135
return false;
1136
SmallVector<unsigned, 8> profitVec;
1137
- // FIXME: Enable for OCL shader only as other clients have regressions but
1138
- // there's no way to trace down.
1139
- bool isUniformLoad = (CGC->type == ShaderType::OPENCL_SHADER) && (WI->isUniform(LeadingLoad));
+ bool isUniformLoad = WI->isUniform(LeadingLoad);
1140
if (isUniformLoad) {
1141
unsigned C = IGC_GET_FLAG_VALUE(UniformMemOpt4OW);
1142
C = (C == 1) ? 512 : 256;
0 commit comments