Since the for loop iterates over BB's predecessors, the branch conditions found must have BB as one of the successors.
For an unconditional branch the successor must be BB, added assert.
For a conditional branch, one of the two successors must be BB, simplify else if to else and assert.
Sink common instructions outside the if/else block.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM