[Autobackout][FunctionalRegression]Revert of change: 6cdb2a96a3: Universally run GVN, even when there aren't multiple basic blocks

Universally run GVN, even when there aren't multiple basic blocks
This commit is contained in:
sys_igc
2025-09-20 08:11:57 +02:00
committed by igcbot
parent 6cdb2a96a3
commit 6d3f69e4ab

View File

@ -1293,10 +1293,6 @@ void OptimizeIR(CodeGenContext *const pContext) {
}
mpm.add(new BlockMemOpAddrScalarizationPass());
if (IGC_IS_FLAG_ENABLED(EnableGVN)) {
mpm.add(llvm::createGVNPass());
}
if (pContext->m_instrTypes.hasMultipleBB && !disableGOPT) {
if (pContext->m_instrTypes.numOfLoop) {
bool allowLICM = IGC_IS_FLAG_ENABLED(allowLICM) && pContext->m_retryManager.AllowLICM();