[llvm] [LoopFlatten] Add option to version loops instead of widening IVs (PR #166156)

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 12:37:29 PST 2025


amehsan wrote:

> It looks like probably the call to checkOverflow needs to be before we decide whether to version due to VersionLoopsOverWiden.

Don't we get this behavior if we just set the `loop-flatten-widen-iv` to `false`, and let  `loop-flatten-version-loops` be  `true` ?

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


More information about the llvm-commits mailing list