1 ; RUN: llvm-as < %s | opt -sccp -adce -simplifycfg | llvm-dis | not grep br
3 ; No matter how hard you try, sqrt(1.0) is always 1.0. This allows the
4 ; optimizer to delete this loop.
6 declare double %sqrt(double)
8 double %test(uint %param) {
13 %I2 = phi uint [ 0, %entry ], [ %I3, %Loop ]
14 %V = phi double [ 1.0, %entry], [ %V2, %Loop ]
16 %V2 = call double %sqrt(double %V)
19 %tmp.7 = setne uint %I3, %param
20 br bool %tmp.7, label %Loop, label %Exit