[ScopInfo] Print instructions in dump().
commit5ae852af2d7129159689ed75f192160950e64251
authorMichael Kruse <llvm@meinersbur.de>
Fri, 21 Jul 2017 15:35:53 +0000 (21 15:35 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 21 Jul 2017 15:35:53 +0000 (21 15:35 +0000)
treebb1d780b232c6afa978179f9e70e0bb2d9f1c1c4
parentc0d9d9a73049619b39115bda058b5177897adf01
[ScopInfo] Print instructions in dump().

Print a statement's instruction on dump() regardless of
-polly-print-instructions. dump() is supposed to be used in the debugger
only and never in regression tests. While debugging, get all the
information we have and we are not bound to break anything. For non-dump
purposes of print, forward the setting of -polly-print-instructions as
parameters.

Some calls to print() had to be changed because the
PollyPrintInstructions setting is only available in ScopInfo.cpp.
In ScheduleOptimizer.cpp, dump() was used in regression tests.
That's not what dump() is for.

The print parameter "PrintInstructions" will also be useful for an
explicit print SCoP pass in a future patch.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@308746 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
lib/Analysis/ScopBuilder.cpp
lib/Analysis/ScopInfo.cpp
lib/CodeGen/CodeGeneration.cpp
lib/Exchange/JSONExporter.cpp
lib/Transform/DeLICM.cpp
lib/Transform/ScheduleOptimizer.cpp
lib/Transform/Simplify.cpp