Fix a case where ScalarEvolution was expanding pointer arithmetic
authorDan Gohman <gohman@apple.com>
Sat, 26 Sep 2009 16:11:57 +0000 (16:11 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 26 Sep 2009 16:11:57 +0000 (16:11 +0000)
commitc70c37794fbff2c615d4f9dc3b6adf9583b855dc
tree985e38013dcf7bdf938042fdefec440e5c4e6e25
parent3548ea8e905269e819fdd4c7fab42142b745c6c5
Fix a case where ScalarEvolution was expanding pointer arithmetic
to inttoptr/ptrtoint unnecessarily.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82864 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/IndVarSimplify/preserve-gep-loop-variant.ll [new file with mode: 0644]