mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Two things. Preserve the unwind_to when splitting a BB.
Add the ability to remove just one instance of a BB from a phi node. This fixes the compile error in the tree now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -185,7 +185,11 @@ public:
|
||||
/// DontDeleteUselessPHIs will keep PHIs that have one value or the same
|
||||
/// value for all entries.
|
||||
///
|
||||
void removePredecessor(BasicBlock *Pred, bool DontDeleteUselessPHIs = false);
|
||||
/// OnlyDeleteOne will only remove one entry from a PHI, in case there were
|
||||
/// duplicate entries for the Pred.
|
||||
///
|
||||
void removePredecessor(BasicBlock *Pred, bool DontDeleteUselessPHIs = false,
|
||||
bool OnlyDeleteOne = false);
|
||||
|
||||
/// splitBasicBlock - This splits a basic block into two at the specified
|
||||
/// instruction. Note that all instructions BEFORE the specified iterator
|
||||
|
Reference in New Issue
Block a user