mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 20:15:35 +00:00
By default PHINode::removeIncomingValue will delete the phi node if the last
incoming value is deleted! llvm-svn: 4076
This commit is contained in:
parent
3cf20c3f14
commit
aa8b6d047c
@ -65,7 +65,14 @@ public:
|
||||
|
||||
/// removeIncomingValue - Remove an incoming value. This is useful if a
|
||||
/// predecessor basic block is deleted. The value removed is returned.
|
||||
Value *removeIncomingValue(const BasicBlock *BB);
|
||||
///
|
||||
/// If the last incoming value for a PHI node is removed (and DeletePHIIfEmpty
|
||||
/// is true), the PHI node is destroyed and any uses of it are replaced with
|
||||
/// dummy values. The only time there should be zero incoming values to a PHI
|
||||
/// node is when the block is dead, so this strategy is sound.
|
||||
///
|
||||
Value *removeIncomingValue(const BasicBlock *BB,
|
||||
bool DeletePHIIfEmpty = true);
|
||||
|
||||
/// getBasicBlockIndex - Return the first index of the specified basic
|
||||
/// block in the value list for this PHI. Returns -1 if no instance.
|
||||
|
Loading…
Reference in New Issue
Block a user