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 e3d52da commit 049782dCopy full SHA for 049782d
IGC/Compiler/GenTTI.cpp
@@ -137,7 +137,8 @@ namespace llvm {
137
// For OCL shaders, do a two-step loop unrolling. The first
138
// unrolling is simple and full, and the second runs after
139
// LICM, which allows partial unrolling. Same for other APIs?
140
- if (lowPressure || (ctx->type == ShaderType::OPENCL_SHADER))
+ if (lowPressure || (ctx->type == ShaderType::OPENCL_SHADER) ||
141
+ (!IGC_IS_FLAG_ENABLED(DisableDynamicConstantFolding) && (!ctx->getModuleMetaData()->inlineDynConstants.empty())))
142
{
143
UP.Threshold = LoopUnrollThreshold;
144
UP.PartialThreshold = LoopUnrollThreshold;
0 commit comments