IndVarSimplify: do not recompute an IV value outside of the loop if :
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Tue, 19 Mar 2013 20:00:22 +0000 (20:00 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Tue, 19 Mar 2013 20:00:22 +0000 (20:00 +0000)
commiteb9a42e8ab5ffb5a8f02c2f78876ed03dd883416
treef3e7e759a4ca5653feb3e8f3da07fdf44b2c731e
parentdff4d1522a3a14df3c40c33421e24f59633da67b
IndVarSimplify: do not recompute an IV value outside of the loop if :

- it is trivially known to be used inside the loop in a way that can not be optimized away
- there is no use outside of the loop which can take advantage of the computation hoisting

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/dont-recompute.ll [new file with mode: 0644]