summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-11-20 23:31:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-11-20 23:31:34 +0000
commit73f9a9e2c885a93fb771b31b32c8c6d5a28fc925 (patch)
tree05f372450af8e2642182b4dbe34b1a2f6d89b38c /llvm/test/CodeGen
parent312971513fcd319a2bd1516d1eaca2c5c9ecb1eb (diff)
downloadbcm5719-llvm-73f9a9e2c885a93fb771b31b32c8c6d5a28fc925.tar.gz
bcm5719-llvm-73f9a9e2c885a93fb771b31b32c8c6d5a28fc925.zip
Enable hoisting load from constant memories.
llvm-svn: 89510
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Thumb2/machine-licm.ll8
-rw-r--r--llvm/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll2
-rw-r--r--llvm/test/CodeGen/X86/pic-load-remat.ll6
3 files changed, 7 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/Thumb2/machine-licm.ll b/llvm/test/CodeGen/Thumb2/machine-licm.ll
index 88e21551be8..9ab19e9d5a6 100644
--- a/llvm/test/CodeGen/Thumb2/machine-licm.ll
+++ b/llvm/test/CodeGen/Thumb2/machine-licm.ll
@@ -18,7 +18,9 @@ entry:
bb.nph: ; preds = %entry
; CHECK: BB#1
; CHECK: ldr.n r2, LCPI1_0
-; CHECK: ldr r{{[0-9]+}}, [r2]
+; CHECK: ldr r3, [r2]
+; CHECK: ldr r3, [r3]
+; CHECK: ldr r2, [r2]
; CHECK: LBB1_2
; CHECK: LCPI1_0:
; CHECK-NOT: LCPI1_1:
@@ -27,7 +29,9 @@ bb.nph: ; preds = %entry
; PIC: BB#1
; PIC: ldr.n r2, LCPI1_0
; PIC: add r2, pc
-; PIC: ldr r{{[0-9]+}}, [r2]
+; PIC: ldr r3, [r2]
+; PIC: ldr r3, [r3]
+; PIC: ldr r2, [r2]
; PIC: LBB1_2
; PIC: LCPI1_0:
; PIC-NOT: LCPI1_1:
diff --git a/llvm/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll b/llvm/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll
index ef10ae59ab6..91c5440b278 100644
--- a/llvm/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll
+++ b/llvm/test/CodeGen/X86/2009-10-08-MachineLICMBug.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic -stats |& grep {machine-licm} | grep 1
+; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic -stats |& grep {machine-licm} | grep 2
; rdar://7274692
%0 = type { [125 x i32] }
diff --git a/llvm/test/CodeGen/X86/pic-load-remat.ll b/llvm/test/CodeGen/X86/pic-load-remat.ll
index d930f76a774..77297521cd0 100644
--- a/llvm/test/CodeGen/X86/pic-load-remat.ll
+++ b/llvm/test/CodeGen/X86/pic-load-remat.ll
@@ -1,10 +1,4 @@
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 -relocation-model=pic | grep psllw | grep pb
-; XFAIL: *
-
-; This is XFAIL'd because MachineLICM is now hoisting all of the loads, and the pic
-; base appears killed in the entry block when remat is making its decisions. Remat's
-; simple heuristic decides against rematting because it doesn't want to extend the
-; live-range of the pic base; this isn't necessarily optimal.
define void @f() nounwind {
entry:
OpenPOWER on IntegriCloud