[llvm] [SimplifyCfg] Deduplicate code (NFC) (PR #153965)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 16 09:57:48 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);
----------------
andjo403 wrote:
when I hade missed this re evaluation the code was faulty so not sure that this PR made this code less fragile
https://github.com/llvm/llvm-project/pull/153965
More information about the llvm-commits
mailing list