summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-11-02 08:09:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-11-02 08:09:49 +0000
commit72ed88feacb989831581f2c71176a68fcdba4b67 (patch)
treeb9108fe6f86ff98649b50e9b93dcd7fd18a7edf7 /test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
parentd3e18fad7e7c6839a3d343f77957a488754d06b6 (diff)
downloadllvm-72ed88feacb989831581f2c71176a68fcdba4b67.tar.gz
llvm-72ed88feacb989831581f2c71176a68fcdba4b67.tar.bz2
llvm-72ed88feacb989831581f2c71176a68fcdba4b67.tar.xz
Initilize the machine LICM CSE map upon the first time an instruction is hoisted to
the loop preheader. Add instructions which are already in the preheader block that may be common expressions of those that are hoisted out. These does get a few more instructions CSE'ed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll')
-rw-r--r--test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll b/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
index 0626d28eef..721d4c945b 100644
--- a/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
+++ b/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
@@ -1,6 +1,5 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 -stats |& \
-; RUN: grep {1 .*folded into instructions}
-; Increment in loop bb.128.i adjusted to 2, to prevent loop reversal from
+; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
+; Increment in loop bb.i28.i adjusted to 2, to prevent loop reversal from
; kicking in.
declare fastcc void @rdft(i32, i32, double*, i32*, double*)
@@ -34,6 +33,9 @@ cond_next36.i: ; preds = %cond_next.i
br label %bb.i28.i
bb.i28.i: ; preds = %bb.i28.i, %cond_next36.i
+; CHECK: %bb.i28.i
+; CHECK: addl $2
+; CHECK: addl $2
%j.0.reg2mem.0.i16.i = phi i32 [ 0, %cond_next36.i ], [ %indvar.next39.i, %bb.i28.i ] ; <i32> [#uses=2]
%din_addr.1.reg2mem.0.i17.i = phi double [ 0.000000e+00, %cond_next36.i ], [ %tmp16.i25.i, %bb.i28.i ] ; <double> [#uses=1]
%tmp1.i18.i = fptosi double %din_addr.1.reg2mem.0.i17.i to i32 ; <i32> [#uses=2]