1 ; RUN: opt < %s -newgvn -S | FileCheck %s
3 ; CHECK-LABEL: func_fast
4 ; CHECK: fadd fast double
7 define double @func_fast(double %a, double %b) {
9 %a.addr = alloca double, align 8
10 %add = fadd fast double %b, 3.000000e+00
11 store double %add, double* %a.addr, align 8
12 %load_add = load double, double* %a.addr, align 8
16 ; CHECK-LABEL: func_no_fast
20 define double @func_no_fast(double %a, double %b) {
22 %a.addr = alloca double, align 8
23 %add = fadd fast double %b, 3.000000e+00
24 store double %add, double* %a.addr, align 8
25 %duplicated_add = fadd double %b, 3.000000e+00
26 ret double %duplicated_add