[PATCH] D64869: [SCEV] get more accurate range for AddExpr with NW flag

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 15:10:50 PDT 2019


nikic requested changes to this revision.
nikic added a comment.
This revision now requires changes to proceed.

`makeGuaranteedNoWrapRegion()` cannot be used to constrain input ranges. E.g. consider that the RHS is [UINT_MAX-1, UINT_MAX]. Then the GWNR is just [0, 0], even though 1 would be a legal value for LHS (assuming the RHS is UINT_MAX-1).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64869/new/

https://reviews.llvm.org/D64869





More information about the llvm-commits mailing list