[NFC] Introduce a 'struct Range' for IRCE
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 22 Jan 2015 09:32:02 +0000 (09:32 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 22 Jan 2015 09:32:02 +0000 (09:32 +0000)
commitb51b170ce4edfe4240a2222e4a7694a5aa15b723
treed4792ebabee2a376ec3376f99203c53f8296f8b4
parentdeb2e51099a71092ef765ce0e8be40616a89f7d9
[NFC] Introduce a 'struct Range' for IRCE

Use the struct instead of a std::pair<Value *, Value *>.  This makes a
Range an obviously immutable object, and we can now assert that a
range is well-typed (Begin->getType() == End->getType()) on its
construction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226804 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp