mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
503ec9826c
This reverts commit r222142. This is causing/exposing an execution-time regression in spec2006/gcc and coremark on AArch64/A57/Ofast. Conflicts: test/Transforms/Reassociate/optional-flags.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222398 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
592 B
LLVM
19 lines
592 B
LLVM
; RUN: opt -reassociate %s -S | FileCheck %s
|
|
|
|
define float @foo(float %a,float %b, float %c) {
|
|
; CHECK: %mul3 = fmul float %a, %b
|
|
; CHECK-NEXT: fmul fast float %c, 2.000000e+00
|
|
; CHECK-NEXT: fadd fast float %factor, %b
|
|
; CHECK-NEXT: fmul fast float %tmp1, %a
|
|
; CHECK-NEXT: fadd fast float %tmp2, %mul3
|
|
; CHECK-NEXT: ret float
|
|
%mul1 = fmul fast float %a, %c
|
|
%mul2 = fmul fast float %a, %b
|
|
%mul3 = fmul float %a, %b
|
|
%mul4 = fmul fast float %a, %c
|
|
%add1 = fadd fast float %mul1, %mul3
|
|
%add2 = fadd fast float %mul4, %mul2
|
|
%add3 = fadd fast float %add1, %add2
|
|
ret float %add3
|
|
}
|