[llvm] [InlineCost] Consider the default branch when calculating cost (PR #77856)

Quentin Dian via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 05:04:01 PST 2024


================
@@ -3505,6 +3506,10 @@ class SwitchInst : public Instruction {
     return cast<BasicBlock>(getOperand(1));
   }
 
+  bool defaultDestIsUnreachable() const {
----------------
DianQK wrote:

Thanks for the reminder. I prefer `defaultDestUndefined`.

https://github.com/llvm/llvm-project/pull/77856


More information about the llvm-commits mailing list