[llvm] [CVP] Infer no-wrap flags from operand ranges at use sites. (PR #207522)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 04:30:00 PDT 2026


fhahn wrote:

> > ping. I'd prefer to keep support for multi-use cases, but should I re-work initially to support single-use only?
> 
> I think it would be good to at least try that? As that would benefit all the other at-use folds as well.

I tried to do something like that here https://github.com/llvm/llvm-project/commit/1723e3fa6fcb5b64b8a059783304048946448a61.

This is quite aggressive, and refines via a single user for each `getConstantRangeAtUse`. It triggers quite a lot https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/747

Also comes with compile-time impact, although this could be limited/restricted https://llvm-compile-time-tracker.com/compare.php?from=948c4a2fc3df17eeb44337d590d669d0150aecbb&to=1723e3fa6fcb5b64b8a059783304048946448a61&stat=instructions:u

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


More information about the llvm-commits mailing list