IRCE: use SCEVs instead of llvm::Value's for intermediate
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 21 Feb 2015 22:07:32 +0000 (22:07 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 21 Feb 2015 22:07:32 +0000 (22:07 +0000)
commit7fc60da2f58fed58a60046e4da815646a6b83c61
treebc91e2465cbdd4543a986531461573ef8aa34e74
parentf07833057c012ca19d173f1e4990d8fa3ccda6cb
IRCE: use SCEVs instead of llvm::Value's for intermediate
calculations.  Semantically non-functional change.

This gets rid of some of the SCEV -> Value -> SCEV round tripping and
the Construct(SMin|SMax)Of and MaybeSimplify helper routines.

llvm-svn: 230150
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
llvm/test/Transforms/IRCE/multiple-access-no-preloop.ll
llvm/test/Transforms/IRCE/single-access-no-preloop.ll
llvm/test/Transforms/IRCE/single-access-with-preloop.ll