Displaying 1 result from an estimated 1 matches for "ggdb0".
Did you mean:
ggdb
2017 Nov 20
2
Nowaday Scalar Evolution's Problem.
..., we increase it. so its
8.
// do something here....
}
}
Is this loop-count for this code predictable?
yes, it does. its "actually" predictable, also unrollable.
lets see following IR and Assembly that clang(lastest version, 2017-11-17)
emitted.
**IR OUTPUT with (clang.exe -ggdb0 -O3 -S -emit-llvm)**
define void @UnpredictableBackedgeTakenCountFunc1() {
br label %1 ; goto %1
%2 = phi i32 [ 0, %0 ], [ %10, %5 ] ; if(%2 from %0) %2 = 0
; if(%2 from %5) %2 = %10
;...