[llvm] [SimplifyCFG] process prof data when remove case in umin (PR #182261)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 09:03:08 PST 2026
================
@@ -7724,7 +7724,7 @@ static bool simplifySwitchWhenUMin(SwitchInst *SI, DomTreeUpdater *DTU) {
BasicBlock *DeadCaseBB = I->getCaseSuccessor();
DeadCaseBB->removePredecessor(BB);
Updates.push_back({DominatorTree::Delete, BB, DeadCaseBB});
- I = SIW->removeCase(I);
+ I = SIW.removeCase(I);
----------------
boomanaiden154 wrote:
Yeah, this API could do with some tweaking. We should land this patch first though.
https://github.com/llvm/llvm-project/pull/182261
More information about the llvm-commits
mailing list