[llvm] [InstCombine] Add combines for unsigned comparison of absolute value to constant (PR #172021)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 9 08:35:30 PST 2026


https://github.com/nikic requested changes to this pull request.

I agree with @dtcxzyw that we should not handle freeze of abs patterns. We should be pushing the freeze through the abs: https://alive2.llvm.org/ce/z/rqzkEw

We do this for everything else already, abs is just a special case because it encode a poison-generating flag as an immediate instead.

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


More information about the llvm-commits mailing list