Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/coalescer-commute1.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
4 @NNTOT = weak global i32 0 ; <i32*> [#uses=1] | 4 @NNTOT = weak global i32 0 ; <i32*> [#uses=1] |
5 @G = weak global float 0.000000e+00 ; <float*> [#uses=1] | 5 @G = weak global float 0.000000e+00 ; <float*> [#uses=1] |
6 | 6 |
7 define void @runcont(i32* %source) nounwind { | 7 define void @runcont(i32* %source) nounwind { |
8 entry: | 8 entry: |
9 %tmp10 = load i32* @NNTOT, align 4 ; <i32> [#uses=1] | 9 %tmp10 = load i32, i32* @NNTOT, align 4 ; <i32> [#uses=1] |
10 br label %bb | 10 br label %bb |
11 | 11 |
12 bb: ; preds = %bb, %entry | 12 bb: ; preds = %bb, %entry |
13 %neuron.0 = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=2] | 13 %neuron.0 = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=2] |
14 %thesum.0 = phi float [ 0.000000e+00, %entry ], [ %tmp6, %bb ] ; <float> [#uses=1] | 14 %thesum.0 = phi float [ 0.000000e+00, %entry ], [ %tmp6, %bb ] ; <float> [#uses=1] |
15 %tmp2 = getelementptr i32* %source, i32 %neuron.0 ; <i32*> [#uses=1] | 15 %tmp2 = getelementptr i32, i32* %source, i32 %neuron.0 ; <i32*> [#uses=1] |
16 %tmp3 = load i32* %tmp2, align 4 ; <i32> [#uses=1] | 16 %tmp3 = load i32, i32* %tmp2, align 4 ; <i32> [#uses=1] |
17 %tmp34 = sitofp i32 %tmp3 to float ; <float> [#uses=1] | 17 %tmp34 = sitofp i32 %tmp3 to float ; <float> [#uses=1] |
18 %tmp6 = fadd float %tmp34, %thesum.0 ; <float> [#uses=2] | 18 %tmp6 = fadd float %tmp34, %thesum.0 ; <float> [#uses=2] |
19 %indvar.next = add i32 %neuron.0, 1 ; <i32> [#uses=2] | 19 %indvar.next = add i32 %neuron.0, 1 ; <i32> [#uses=2] |
20 %exitcond = icmp eq i32 %indvar.next, %tmp10 ; <i1> [#uses=1] | 20 %exitcond = icmp eq i32 %indvar.next, %tmp10 ; <i1> [#uses=1] |
21 br i1 %exitcond, label %bb13, label %bb | 21 br i1 %exitcond, label %bb13, label %bb |