[llvm] [X86][CostModel] Estimate the codesize cost of switch (PR #163569)

Hongyu Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 12:20:18 PDT 2025


XChy wrote:

> It looks like a lot of targets just unnecessarily implement this method, with an implementation that is equivalent to the default one.

The implementations of X86/AArch64/RISC-V are equivalent, but they differ slightly from the default implementation: the default implementation assumes a throughput cost of 1, rather than 0.


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


More information about the llvm-commits mailing list