[IRCE][NFC] Add no wrap flags to no-wrapping SCEV calculation
authorMax Kazantsev <max.kazantsev@azul.com>
Thu, 23 Nov 2017 06:14:39 +0000 (06:14 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Thu, 23 Nov 2017 06:14:39 +0000 (06:14 +0000)
commit716e647d74a19b9a0f3066989276988f6e0d0fc4
tree096a1146be844995b672a40282b18fcb746314bf
parent69b903eecb7720279850768a8cca4ac7eb2aeede
[IRCE][NFC] Add no wrap flags to no-wrapping SCEV calculation

In a lambda where we expect to have result within bounds, add respective `nsw/nuw` flags to
help SCEV just in case if it fails to figure them out on its own.

Differential Revision: https://reviews.llvm.org/D40168

llvm-svn: 318898
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp