1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/CodeGen/X86/remat-constant.ll
Dan Gohman 680e1bd958 Enable rematerialization of constants using AliasAnalysis::pointsToConstantMemory,
and knowledge of PseudoSourceValues. This unfortunately isn't sufficient to allow
constants to be rematerialized in PIC mode -- the extra indirection is a
complication.

llvm-svn: 54000
2008-07-25 00:02:30 +00:00

16 lines
325 B
LLVM

; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static | grep xmm | count 2
declare void @bar() nounwind
@a = external constant float
declare void @qux(float %f) nounwind
define void @foo() nounwind {
%f = load float* @a
call void @bar()
call void @qux(float %f)
call void @qux(float %f)
ret void
}