1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/Reassociate/propagate-flags.ll
Vyacheslav Klochkov 491284f0da Fixed the lost FastMathFlags in Reassociate optimization.
Reviewer: Hal Finkel.
Differential Revision: https://reviews.llvm.org/D26957

llvm-svn: 287695
2016-11-22 20:23:04 +00:00

15 lines
333 B
LLVM

; RUN: opt < %s -reassociate -S | FileCheck %s
; CHECK-LABEL: func
; CHECK: fmul fast double
; CHECK-NEXT: fmul fast double
; CHECK-NEXT: ret
define double @func(double %a, double %b) {
entry:
%mul1 = fmul fast double %a, %a
%mul2 = fmul fast double %b, %b
%mul3 = fmul fast double %mul1, %mul2
ret double %mul3
}