1
; RUN: llc < %s -march=x86 | FileCheck %s
3
; Don't duplicate the load.
5
define fastcc i32 @foo(i32* %p) nounwind {
7
; CHECK: andl $10, %eax
11
%t3 = icmp ne i32 %t2, 0
12
br i1 %t3, label %bb63, label %bb76
19
define fastcc double @bar(i32 %hash, double %x, double %y) nounwind {
22
%0 = and i32 %hash, 15
23
%1 = icmp ult i32 %0, 8
24
br i1 %1, label %bb11, label %bb10
30
%3 = icmp eq i32 %2, 0
31
br i1 %3, label %bb13, label %bb11
34
%4 = fsub double -0.000000e+00, %x
40
%iftmp.9.0 = phi double [ %4, %bb11 ], [ %x, %bb10 ]
42
%6 = icmp eq i32 %5, 0
43
br i1 %6, label %bb16, label %bb14
46
%7 = fsub double -0.000000e+00, %y
50
%iftmp.10.0 = phi double [ %7, %bb14 ], [ %y, %bb13 ]
51
%8 = fadd double %iftmp.9.0, %iftmp.10.0