[llvm] [InstCombine] Fold (X == 0 ? Y : 0) | X to X == 0 ? Y : X (PR #138373)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat May 3 02:52:23 PDT 2025


https://github.com/nikic commented:

Can you please add a multi-use test? I don't think we want to do this transform if the select is not one-use. Converting an or to another select is probably not profitable.

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


More information about the llvm-commits mailing list