[polly] r309197 - [ScopInfo] Never print instruction list of region stmts.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 15:01:33 PDT 2017


Author: meinersbur
Date: Wed Jul 26 15:01:33 2017
New Revision: 309197

URL: http://llvm.org/viewvc/llvm-project?rev=309197&view=rev
Log:
[ScopInfo] Never print instruction list of region stmts.

A region statement's instruction list is always empty and ignored by the code
generator. Don't give the impression that it means anything.

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=309197&r1=309196&r2=309197&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Jul 26 15:01:33 2017
@@ -1965,7 +1965,7 @@ void ScopStmt::print(raw_ostream &OS, bo
   for (MemoryAccess *Access : MemAccs)
     Access->print(OS);
 
-  if (PrintInstructions)
+  if (PrintInstructions && isBlockStmt())
     printInstructions(OS.indent(12));
 }
 




More information about the llvm-commits mailing list