[llvm] [InlineCost] Correct the default branch cost for the switch statement (PR #85160)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 17 11:42:53 PDT 2024


topperc wrote:

> But I don't know why it's 4 * InstrCost and not 3 * InstrCost.

On most targets other than X86 load+jump is 2 instructions.

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


More information about the llvm-commits mailing list