Skip to content

Commit fe83267

Browse files
krystian-andrzejewskiigcbot
authored andcommitted
Remove extra check for merging uniform loads
This is to remove extra check for merging uniform loads.
1 parent 9538367 commit fe83267

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

IGC/Compiler/CISACodeGen/MemOpt.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,9 +1134,7 @@ bool MemOpt::mergeLoad(LoadInst* LeadingLoad,
11341134
if (!ProfitVectorLengths.count(TypeSizeInBits))
11351135
return false;
11361136
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));
1137+
bool isUniformLoad = WI->isUniform(LeadingLoad);
11401138
if (isUniformLoad) {
11411139
unsigned C = IGC_GET_FLAG_VALUE(UniformMemOpt4OW);
11421140
C = (C == 1) ? 512 : 256;

0 commit comments

Comments
 (0)