[llvm] [CodeGenPrepare] Split x/select(cond,y,C) to select(cond,x/y,x/C) (PR #215967)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 29 05:20:13 PDT 2026


phoebewang wrote:

Is the reason doing in CodeGenPrepare that to query isIntDivCheap? Is it possible to share the code in [InstCombine](https://github.com/llvm/llvm-project/commit/05ad0b5bc504575fc5711c9090f6161597d9e790) if we can query from TTI instead?

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


More information about the llvm-commits mailing list