OSDN Git Service

Consider only references to an IV within the loop when
authorDale Johannesen <dalej@apple.com>
Mon, 1 Dec 2008 22:00:01 +0000 (22:00 +0000)
committerDale Johannesen <dalej@apple.com>
Mon, 1 Dec 2008 22:00:01 +0000 (22:00 +0000)
commit589bf0865ccd10d36f406d622c0160be249343e1
tree20012d23613f326d0c0a9e6e250c69f3e3e50c6c
parentc65fc3bd27a84281da9819b5fe89a01535a14ecf
Consider only references to an IV within the loop when
figuring out the base of the IV.  This produces better
code in the example.  (Addresses use (IV) instead of
(BASE,IV) - a significant improvement on low-register
machines like x86).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/2008-12-01-loop-iv-used-outside-loop.ll [new file with mode: 0644]