Displaying 3 results from an estimated 3 matches for "exitbb1_redirect".
2010 Oct 11
3
[LLVMdev] Specify dominator for BasicBlock to avoid "Instruction does not dominate all uses!"
...| | |
\ | / |
ExitBB1 ExitBB2
| |
----------------------------------
|
BB_unique
/ \
ExitBB1_redirect ExitBB2_redirect
| | | |
/ \ / \
EBB1.1 EBB1.2 EBB2.1 EBB2.2
And BB_unique contains:
%PHI_uniqueExit = phi i8 [ 0, %ExitBB1 ], [ 1, %ExitBB2 ]
switch i8 %PHI_uniqueExit, label %switch_default...
2010 Oct 11
0
[LLVMdev] Specify dominator for BasicBlock to avoid "Instruction does not dominate all uses!"
...> \ | / |
> ExitBB1 ExitBB2
> | |
> ----------------------------------
> |
> BB_unique
> / \
> ExitBB1_redirect ExitBB2_redirect
> | | | |
> / \ / \
> EBB1.1 EBB1.2 EBB2.1 EBB2.2
>
> And BB_unique contains:
> %PHI_uniqueExit = phi i8 [ 0, %ExitBB1 ], [ 1, %ExitBB2 ]
> switch i8 %PHI_un...
2010 Oct 12
1
[LLVMdev] Specify dominator for BasicBlock to avoid "Instruction does not dominate all uses!"
Hi, I tried adding the PHI nodes in BB_unique, and it works for the simple
case described here, but in case the nodes were declared in some
predecessors of ExitBB1 and used in ExitBB1_redirect and its successors, it
won't work, unless I create entries for all of them in BB_unique.
B1 (declares PHI_1) B3
| |
B2 |
|...