summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/constant-pool-remat-0.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-08-02 14:27:55 +0000
committerDan Gohman <gohman@apple.com>2007-08-02 14:27:55 +0000
commit73a902b2281398c187b134e7a17e6b1e394166be (patch)
treeabb95af84fd9482c5fa26c59d2a057e7b24f412b /test/CodeGen/X86/constant-pool-remat-0.ll
parent951626b437cbb6d2ddde56678e6dbf0ae72dc7be (diff)
downloadllvm-73a902b2281398c187b134e7a17e6b1e394166be.tar.gz
llvm-73a902b2281398c187b134e7a17e6b1e394166be.tar.bz2
llvm-73a902b2281398c187b134e7a17e6b1e394166be.tar.xz
Mark the SSE and MMX load instructions that
X86InstrInfo::isReallyTriviallyReMaterializable knows how to handle with the isReMaterializable flag so that it is given a chance to handle them. Without hoisting constant-pool loads from loops this isn't very visible, though it does keep CodeGen/X86/constant-pool-remat-0.ll from making a copy of the constant pool on the stack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/constant-pool-remat-0.ll')
-rw-r--r--test/CodeGen/X86/constant-pool-remat-0.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/constant-pool-remat-0.ll b/test/CodeGen/X86/constant-pool-remat-0.ll
new file mode 100644
index 0000000000..d5af99ef9f
--- /dev/null
+++ b/test/CodeGen/X86/constant-pool-remat-0.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | wc -l | grep 3
+
+declare float @qux(float %y)
+
+define float @array(float %a) {
+ %n = mul float %a, 9.0
+ %m = call float @qux(float %n)
+ %o = mul float %m, 9.0
+ ret float %o
+}