Displaying 2 results from an estimated 2 matches for "lbb0_34".
Did you mean:
lbb0_3
2013 Sep 18
2
[LLVMdev] How basic block layout is determined during scheduling?
Hi, guys,
I compiled a subroutine with -O2, and llvm backend produced codes like:
##################################################################
LBB0_32:
...
R31 = -1
R20 = R31 * R20;
....
bnz R2, LBB0_34
LBB0_31:
...
b LBB0_34
LBB0_33: # weird basic block?
R20 = R5
LBB0_34:
....
##################################################################
Wrong answer is produced when executing bove codes. LBB0_33 is not used as
destination basic block for any branch instruc...
2013 Sep 18
0
[LLVMdev] How basic block layout is determined during scheduling?
Hi Yang,
> bnz R2, LBB0_34
>
> I do not have any clue what happens when compiling with -O2.
> Can someone make a suggestion?
Is the "bnz" instruction marked "isBarrier" in your TableGen files? If
so, that would mean LLVM considers fallthrough impossible and decides
it can move LBB0_33 around at...