Displaying 1 result from an estimated 1 matches for "contrust".
Did you mean:
  contrast
  
2004 Dec 07
1
[LLVMdev] Question adding dummy basic blocks
...>B
 \       /
   \   /
    C
There is new BB 'C' with edges AC and CB.
It is kind of like what breakcriticaledge pass does. But we just pick up basic block(TIBB) whose the num of successor is 1 (like unconditional branch). And we try to replace the Terminator Inst of this basic block by contrusting a conditional branch(A to B and A to C). Meanwhile we generate a new basic block and unconditional branch which is from C to B.
Finally, We got some problems due to PHINODE. I knew the reason, but I failed to  fix it.
The code is like the following
if( TI->getNumSuccessors() ==1){
   Basic...