[llvm] Match range check pattern with SExt (PR #118910)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 6 22:28:40 PST 2024


https://github.com/dtcxzyw commented:

Looks like it also holds for zext: https://alive2.llvm.org/ce/z/vpYSiD

BTW, can you add a proof for `(icmp slt x, 0) | (icmp sgt sext(x), n) --> icmp ugt x, n`?

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


More information about the llvm-commits mailing list