[llvm] [SelectOpt] Support ADD and SUB with zext operands. (PR #115489)

David Green via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 07:32:51 PST 2024


davemgreen wrote:

Oh and theoretically a `zext i1 %c` is `select %c, 1, 0`, and `sext i1 %c` is `select %c, -1, 0`, so the add/sub/or part might not be strictly necessary if they not there to control profitability.

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


More information about the llvm-commits mailing list