[llvm] [SimplifyCFG]: Switch on umin replaces default (PR #164097)
Hongyu Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 03:58:21 PDT 2025
================
@@ -3556,6 +3556,10 @@ class SwitchInstProfUpdateWrapper {
/// correspondent branch weight.
LLVM_ABI SwitchInst::CaseIt removeCase(SwitchInst::CaseIt I);
+ /// Delegate the call to the underlying SwitchInst::setDefaultCase and
+ /// remove correspondent branch weight.
+ LLVM_ABI void setDefaultDest(SwitchInst::CaseIt I);
----------------
XChy wrote:
replaceDefaultDest?
https://github.com/llvm/llvm-project/pull/164097
More information about the llvm-commits
mailing list