[Mlir-commits] [llvm] [mlir] [IR] Split Br into UncondBr and CondBr (PR #184027)
Alexis Engelke
llvmlistbot at llvm.org
Mon Mar 2 01:09:16 PST 2026
================
@@ -8933,8 +8927,11 @@ bool SimplifyCFGOpt::simplifyOnce(BasicBlock *BB) {
Instruction *Terminator = BB->getTerminator();
Builder.SetInsertPoint(Terminator);
switch (Terminator->getOpcode()) {
- case Instruction::Br:
- Changed |= simplifyBranch(cast<BranchInst>(Terminator), Builder);
+ case Instruction::UncondBr:
+ Changed |= simplifyUncondBranch(cast<UncondBrInst>(Terminator), Builder);
----------------
aengelke wrote:
Done. I tried to not do such changes to avoid blowing up the size of this PR. In this case it's simple, though, so changed.
https://github.com/llvm/llvm-project/pull/184027
More information about the Mlir-commits
mailing list