llvm-6502/test/CodeGen/X86/constant-pool-remat-0.ll
Dan Gohman 73a902b228 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
2007-08-02 14:27:55 +00:00

11 lines
232 B
LLVM

; 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
}