[llvm] [SimplifyCfg] Deduplicate code (NFC) (PR #153965)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 16 12:42:59 PDT 2025
================
@@ -1452,7 +1452,10 @@ bool SimplifyCFGOpt::foldValueComparisonIntoPredecessors(Instruction *TI,
}
}
- performValueComparisonIntoPredecessorFolding(TI, CV, PTI, Builder);
+ // Needs to be called here as SplitBlockPredecessors can change the cases.
+ EqualityComparisonResult ThisResult = isValueEqualityComparison(TI);
----------------
nikic wrote:
Hm, if we can't reuse the original results then maybe it's not worth it.
https://github.com/llvm/llvm-project/pull/153965
More information about the llvm-commits
mailing list