llvm-6502/test/CodeGen/X86/remat-constant.ll
Dan Gohman 6d69ba8a69 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54000 91177308-0d34-0410-b5e6-96231b3b80d8
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
}