projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f230d8a
)
Remove redundant code.
author
Dan Gohman
<gohman@apple.com>
Sat, 31 Oct 2009 16:16:41 +0000
(16:16 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 31 Oct 2009 16:16:41 +0000
(16:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85668
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/BasicBlockUtils.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/BasicBlockUtils.cpp
b/lib/Transforms/Utils/BasicBlockUtils.cpp
index b6f00e24c73f07aeadb1978bf0d28b32c7cb56a0..e7f33d30b66c14ae93034e6fcd0b31dbca8d08b8 100644
(file)
--- a/
lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/
lib/Transforms/Utils/BasicBlockUtils.cpp
@@
-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));