summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/full-lsr.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-21 02:09:26 +0000
committerDan Gohman <gohman@apple.com>2010-01-21 02:09:26 +0000
commita10756ee657a4d43a48cca5c166919093930ed6b (patch)
tree52a9cf0b867521026963ca127f6a46d19f0f8f78 /test/CodeGen/X86/full-lsr.ll
parentac8b4bf66b7263018fe6c133604a30780c24982e (diff)
downloadllvm-a10756ee657a4d43a48cca5c166919093930ed6b.tar.gz
llvm-a10756ee657a4d43a48cca5c166919093930ed6b.tar.bz2
llvm-a10756ee657a4d43a48cca5c166919093930ed6b.tar.xz
Re-implement the main strength-reduction portion of LoopStrengthReduction.
This new version is much more aggressive about doing "full" reduction in cases where it reduces register pressure, and also more aggressive about rewriting induction variables to count down (or up) to zero when doing so reduces register pressure. It currently uses fairly simplistic algorithms for finding reuse opportunities, but it introduces a new framework allows it to combine multiple strategies at once to form hybrid solutions, instead of doing all full-reduction or all base+index. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/full-lsr.ll')
-rw-r--r--test/CodeGen/X86/full-lsr.ll12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/CodeGen/X86/full-lsr.ll b/test/CodeGen/X86/full-lsr.ll
index 68575bc401..3bd58b65be 100644
--- a/test/CodeGen/X86/full-lsr.ll
+++ b/test/CodeGen/X86/full-lsr.ll
@@ -1,6 +1,12 @@
-; RUN: llc < %s -march=x86 -enable-full-lsr >%t
-; RUN: grep {addl \\\$4,} %t | count 3
-; RUN: not grep {,%} %t
+; RUN: llc < %s -march=x86 >%t
+
+; TODO: Enhance full lsr mode to get this:
+; RUNX: grep {addl \\\$4,} %t | count 3
+; RUNX: not grep {,%} %t
+
+; For now, it should find this, which is still pretty good:
+; RUN: not grep {addl \\\$4,} %t
+; RUN: grep {,%} %t | count 6
define void @foo(float* nocapture %A, float* nocapture %B, float* nocapture %C, i32 %N) nounwind {
entry: