[llvm] [ConstantRange] Compute exact no-wrap region w/o materializing CR. (PR #223969)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 02:10:47 PDT 2026


fhahn wrote:

> I wonder if it could make sense to specialize makeExactNoWrapRegion() for the Add and Sub cases (assuming these are the majority of the cases that would dominate in SCEV hot paths), and continue resorting to makeGuaranteedNoWrapRegion() for Mul and Shl. This would come at cost of slightly duplicating some logic, but would avoid the annotation.

Given that mul/shl do not add much more, I inlined all of time 

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


More information about the llvm-commits mailing list