mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
remove some dead code identified by coverity
llvm-svn: 28289
This commit is contained in:
parent
cf71b13e15
commit
5aa7f78065
@ -118,7 +118,7 @@ static bool CanPropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) {
|
||||
|
||||
// If the PHI nodes in BB are only used by instructions in Succ, we are ok if
|
||||
// BB and Succ have no common predecessors.
|
||||
for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I) && IsSafe; ++I) {
|
||||
for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++I) {
|
||||
PHINode *PN = cast<PHINode>(I);
|
||||
for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E;
|
||||
++UI)
|
||||
|
Loading…
Reference in New Issue
Block a user