Skip to content

Commit

Permalink
Remove extra check for merging uniform loads
Browse files Browse the repository at this point in the history
This is to remove extra check for merging uniform loads.
  • Loading branch information
krystian-andrzejewski authored and igcbot committed Sep 2, 2024
1 parent 9538367 commit fe83267
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions IGC/Compiler/CISACodeGen/MemOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,9 +1134,7 @@ bool MemOpt::mergeLoad(LoadInst* LeadingLoad,
if (!ProfitVectorLengths.count(TypeSizeInBits))
return false;
SmallVector<unsigned, 8> profitVec;
// FIXME: Enable for OCL shader only as other clients have regressions but
// there's no way to trace down.
bool isUniformLoad = (CGC->type == ShaderType::OPENCL_SHADER) && (WI->isUniform(LeadingLoad));
bool isUniformLoad = WI->isUniform(LeadingLoad);
if (isUniformLoad) {
unsigned C = IGC_GET_FLAG_VALUE(UniformMemOpt4OW);
C = (C == 1) ? 512 : 256;
Expand Down

0 comments on commit fe83267

Please sign in to comment.