Displaying 1 result from an estimated 1 matches for "branch_to".
Did you mean:
branch_two
2011 Nov 29
0
[LLVMdev] Problem using a label to a basic block
...e link register with the address of the new basic block
-- and generating a 'CALL_R' which in the end results in a 'branch to register'
(but, for llvm, it is treated as a call)
So:
__BB_2:
...
call_to_reg Rx
...
results in:
__BB_2:
...
load_immediate R15, __BB_3
branch_to_reg Rx
__BB_3:
...
where __BB_2 falls through to __BB__3
This works when the optimization level is low.
At higher optimization levels I am observing the following :
load_immediate R15, __BB_3
branch_to_reg Rx
__BB_3:
branch_to __BB_22
is converted into
load_immediate R15, "__...