Make LoopStrengthReduce smarter about hoisting things out of
authorDale Johannesen <dalej@apple.com>
Fri, 5 Dec 2008 21:47:27 +0000 (21:47 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 5 Dec 2008 21:47:27 +0000 (21:47 +0000)
commit203af58aea3ae341d38e5c2c5b390b0c31d25557
tree8f120f606205a8437f8acacb0e52492d0841e82f
parentb51deb929ca95ce62e622b0475a05d83f26ab04d
Make LoopStrengthReduce smarter about hoisting things out of
loops when they can be subsumed into addressing modes.

Change X86 addressing mode check to realize that
some PIC references need an extra register.
(I believe this is correct for Linux, if not, I'm sure
someone will tell me.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86Subtarget.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/loop-strength-reduce-2.ll [new file with mode: 0644]
test/CodeGen/X86/loop-strength-reduce-3.ll [new file with mode: 0644]
test/CodeGen/X86/loop-strength-reduce.ll