[polly] r308828 - [ScopInfo] Adapt indentation of instruction list printing.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 22 09:44:39 PDT 2017


Author: meinersbur
Date: Sat Jul 22 09:44:39 2017
New Revision: 308828

URL: http://llvm.org/viewvc/llvm-project?rev=308828&view=rev
Log:
[ScopInfo] Adapt indentation of instruction list printing.

Change the indention of the last brace to align with the opening line.

Before:

            Instructions {
                  %val = fadd double %arg, 2.100000e+01
                  store double %val, double* %A
                }

After:

            Instructions {
                  %val = fadd double %arg, 2.100000e+01
                  store double %val, double* %A
            }

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=308828&r1=308827&r2=308828&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sat Jul 22 09:44:39 2017
@@ -1966,7 +1966,7 @@ void ScopStmt::printInstructions(raw_ost
   for (Instruction *Inst : Instructions)
     OS.indent(16) << *Inst << "\n";
 
-  OS.indent(16) << "}\n";
+  OS.indent(12) << "}\n";
 }
 
 void ScopStmt::print(raw_ostream &OS, bool PrintInstructions) const {




More information about the llvm-commits mailing list