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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 05:20:15 PDT 2025


dtcxzyw wrote:

> 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?

It is also required by https://github.com/llvm/llvm-project/pull/110511#discussion_r1788946221.


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


More information about the llvm-commits mailing list