[polly] r251156 - ScopInfo: Drop unnecessary code

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 15:36:22 PDT 2015


Author: grosser
Date: Fri Oct 23 17:36:22 2015
New Revision: 251156

URL: http://llvm.org/viewvc/llvm-project?rev=251156&view=rev
Log:
ScopInfo: Drop unnecessary code

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

Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=251156&r1=251155&r2=251156&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Oct 23 17:36:22 2015
@@ -3240,11 +3240,7 @@ bool ScopInfo::buildScalarDependences(In
       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;
     }




More information about the llvm-commits mailing list