From fe83267f96916c578a7cf91473947bd0b9841bad Mon Sep 17 00:00:00 2001 From: "Andrzejewski, Krystian" Date: Fri, 30 Aug 2024 12:58:30 +0000 Subject: [PATCH] Remove extra check for merging uniform loads This is to remove extra check for merging uniform loads. --- IGC/Compiler/CISACodeGen/MemOpt.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/IGC/Compiler/CISACodeGen/MemOpt.cpp b/IGC/Compiler/CISACodeGen/MemOpt.cpp index e5a9c72f9521..093f57e73527 100644 --- a/IGC/Compiler/CISACodeGen/MemOpt.cpp +++ b/IGC/Compiler/CISACodeGen/MemOpt.cpp @@ -1134,9 +1134,7 @@ bool MemOpt::mergeLoad(LoadInst* LeadingLoad, if (!ProfitVectorLengths.count(TypeSizeInBits)) return false; SmallVector 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;