mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
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
11 lines
232 B
LLVM
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
|
|
}
|