ScopInfo: Drop unnecessary code

This case has already been taken care of in r250622 and was then accidentally
again committed in 250625.

llvm-svn: 251156
This commit is contained in:
Tobias Grosser 2015-10-23 22:36:22 +00:00
parent c611d97006
commit c73d8b0e18
1 changed files with 1 additions and 5 deletions

View File

@ -3240,11 +3240,7 @@ bool ScopInfo::buildScalarDependences(Instruction *Inst, Region *R,
continue;
// Check whether or not the use is in the SCoP.
// If there is single exiting block, the single incoming value exit for node
// PHIs are handled like any escaping SCALAR. Otherwise, as if the PHI
// belongs to the the scop region.
bool IsExitNodePHI = isa<PHINode>(UI) && UI->getParent() == R->getExit();
if (!R->contains(UseParent) && (R->getExitingBlock() || !IsExitNodePHI)) {
if (!R->contains(UseParent)) {
AnyCrossStmtUse = true;
continue;
}