[llvm] [SCCP] Relax 2-insts range check to one-icmp check (PR #187997)

Kunqiu Chen via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 01:52:43 PDT 2026


Camsyn wrote:

> A correctness issue was identified by [llvm-hackme](https://github.com/dtcxzyw/llvm-hackme). Please see the [issue comment](https://github.com/llvm/llvm-project/pull/187997#issuecomment-4355086981) for details.

That's because I assume that such an unsimplied instruction `%cmp = icmp ult i8 %off, 0` would not appear at the stage of SCCP.

Fixed this by removing an assertion.



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


More information about the llvm-commits mailing list