[polly] r245174 - Remove trivially true condition

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 16 01:35:42 PDT 2015


Author: jdoerfert
Date: Sun Aug 16 03:35:40 2015
New Revision: 245174

URL: http://llvm.org/viewvc/llvm-project?rev=245174&view=rev
Log:
Remove trivially true condition

Modified:
    polly/trunk/lib/CodeGen/BlockGenerators.cpp

Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=245174&r1=245173&r2=245174&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Sun Aug 16 03:35:40 2015
@@ -376,8 +376,6 @@ AllocaInst *BlockGenerator::getOrCreateA
 
 void BlockGenerator::handleOutsideUsers(const Region &R, Instruction *Inst,
                                         Value *InstCopy) {
-  BasicBlock *ExitBB = R.getExit();
-
   EscapeUserVectorTy EscapeUsers;
   for (User *U : Inst->users()) {
 
@@ -386,7 +384,7 @@ void BlockGenerator::handleOutsideUsers(
     if (!UI)
       continue;
 
-    if (R.contains(UI) && ExitBB != UI->getParent())
+    if (R.contains(UI))
       continue;
 
     EscapeUsers.push_back(UI);




More information about the llvm-commits mailing list