OSDN Git Service

Enhance induction variable code to remove the
authorDale Johannesen <dalej@apple.com>
Wed, 15 Apr 2009 01:10:12 +0000 (01:10 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 15 Apr 2009 01:10:12 +0000 (01:10 +0000)
commitdd1f9e4bf6e7d427fd581728f3d2e431e12e6e71
treeeb1b51bbdaa4684e2a10287eed6483fcf0d1bb50
parentaa230a41dcfc44d3a711732866c07079ec9e2ba6
Enhance induction variable code to remove the
sext around sext(shorter IV + constant), using a
longer IV instead, when it can figure out the
add can't overflow.  This comes up a lot in
subscripting; mainly affects 64 bit.

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