[llvm] [InstCombine] Fold trunc nuw i1 to false when dominated by icmp. (PR #151961)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 02:51:47 PDT 2025


https://github.com/nikic commented:

This does not look like a great fit for InstCombine. Would (IP)SCCP be able to handle this if we teach ConstantRange::truncate() to make use of the nuw flag?

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


More information about the llvm-commits mailing list