mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 21:53:56 +00:00
Remove redundant code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f230d8ad15
commit
dca094100b
@ -65,9 +65,6 @@ void llvm::DeleteDeadBlock(BasicBlock *BB) {
|
||||
/// when all entries to the PHI nodes in a block are guaranteed equal, such as
|
||||
/// when the block has exactly one predecessor.
|
||||
void llvm::FoldSingleEntryPHINodes(BasicBlock *BB) {
|
||||
if (!isa<PHINode>(BB->begin()))
|
||||
return;
|
||||
|
||||
while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) {
|
||||
if (PN->getIncomingValue(0) != PN)
|
||||
PN->replaceAllUsesWith(PN->getIncomingValue(0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user