Adds support for the uadd.sat family of intrinsics in LVI, based on ConstantRange methods from D60946.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Still not any more familiar with CVP, but this looks rather identical to the solveBlockValueOverflowIntrinsic() change, so LG.
Up to you if you want to wait for one more signoff (@spatel ?)
llvm/lib/Analysis/LazyValueInfo.cpp | ||
---|---|---|
1122 ↗ | (On Diff #201397) | Have you considered adding a SaturatingInst base class, much like WithOverflowInst; |
llvm/lib/Analysis/LazyValueInfo.cpp | ||
---|---|---|
1122 ↗ | (On Diff #201397) | Yeah, that might make sense. Having it (possibly even a common base class with WithOverflowInst) would be useful to extend https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp#L402 to saturating math. |