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 43c78c9 commit 6cdb2a9Copy full SHA for 6cdb2a9
IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp
@@ -1293,6 +1293,10 @@ void OptimizeIR(CodeGenContext *const pContext) {
1293
}
1294
mpm.add(new BlockMemOpAddrScalarizationPass());
1295
1296
+ if (IGC_IS_FLAG_ENABLED(EnableGVN)) {
1297
+ mpm.add(llvm::createGVNPass());
1298
+ }
1299
+
1300
if (pContext->m_instrTypes.hasMultipleBB && !disableGOPT) {
1301
if (pContext->m_instrTypes.numOfLoop) {
1302
bool allowLICM = IGC_IS_FLAG_ENABLED(allowLICM) && pContext->m_retryManager.AllowLICM();
0 commit comments