[llvm] [SimplifyCFG] Check whether the previous condition is true before making assume (PR #105986)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 25 06:24:55 PDT 2024
================
@@ -7852,6 +7852,15 @@ static bool removeUndefIntroducingPredecessor(BasicBlock *BB,
Instruction *T = Predecessor->getTerminator();
IRBuilder<> Builder(T);
if (BranchInst *BI = dyn_cast<BranchInst>(T)) {
+ // Prevent multiple conditions cases
----------------
dtcxzyw wrote:
Tests?
https://github.com/llvm/llvm-project/pull/105986
More information about the llvm-commits
mailing list