llvm.org GIT mirror llvm / release_25 test / CodeGen / X86 / remat-constant.ll
release_25

Tree @release_25 (Download .tar.gz)

remat-constant.ll @release_25raw · history · blame

; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static -aggressive-remat | 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
}