search for: faddtmp

Displaying 1 result from an estimated 1 matches for "faddtmp".

Did you mean: addtmp
2010 Nov 22
0
[LLVMdev] Emitting LLVM IR for control flow
...pologize if this list is not the best place to post beginner's questions. In Kaleidoscope 2.7 when I run def binary : 1 (x y) y; def testfor (x) (for c = 1, c<2 in x = x +1 ) : x; testfor(1) unexpectadly get 3.000000 instead of 2.000000. This happens, I believe, because the instruction %faddtmp = fadd *double* %x1.0, 1.000000e+000 ; <*double*> [#uses=2] is being generated before %ltcmptmp = fcmp ult *double* %c.0, 2.000000e+000 ; <i1> [#uses=1] br i1 %ltcmptmp, label %loop, label %afterloop and therefore the loop body is emited first and only afterwards we determine whether t...