Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / CodeGen / X86 / 2010-03-05-ConstantFoldCFG.ll
blob5de19662fffb127aff6fd6646573b1fcac315b25
1 ; RUN: llc < %s -verify-machineinstrs
3 ; When BRCOND is constant-folded to BR, make sure that PHI nodes don't get
4 ; spurious operands when the CFG is trimmed.
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
7 target triple = "x86_64-apple-darwin10.2"
9 define fastcc void @_ZSt16__introsort_loopIPdl17less_than_functorEvT_S2_T0_T1_(double* %__first, double* %__last, i64 %__depth_limit) nounwind ssp {
10 entry:
11   br i1 undef, label %bb1, label %bb2
13 bb1:                                              ; preds = %entry
14   ret void
16 bb2:                                              ; preds = %entry
17   br label %bb2.outer.i
19 bb2.outer.i:                                      ; preds = %bb9.i, %bb2
20   br i1 undef, label %bb1.i, label %bb5.preheader.i
22 bb1.i:                                            ; preds = %bb1.i, %bb2.outer.i
23   %indvar5.i = phi i64 [ %tmp, %bb1.i ], [ 0, %bb2.outer.i ] ; <i64> [#uses=1]
24   %tmp = add i64 %indvar5.i, 1                    ; <i64> [#uses=2]
25   %scevgep.i = getelementptr double* undef, i64 %tmp ; <double*> [#uses=0]
26   br i1 undef, label %bb1.i, label %bb5.preheader.i
28 bb5.preheader.i:                                  ; preds = %bb1.i, %bb2.outer.i
29   br label %bb5.i
31 bb5.i:                                            ; preds = %bb5.i, %bb5.preheader.i
32   br i1 undef, label %bb5.i, label %bb7.i6
34 bb7.i6:                                           ; preds = %bb5.i
35   br i1 undef, label %bb9.i, label %_ZSt21__unguarded_partitionIPdd17less_than_functorET_S2_S2_T0_T1_.exit
37 bb9.i:                                            ; preds = %bb7.i6
38   br label %bb2.outer.i
40 _ZSt21__unguarded_partitionIPdd17less_than_functorET_S2_S2_T0_T1_.exit: ; preds = %bb7.i6
41   unreachable