[PM] Make the new-pm passes behave more like the legacy passes
commit5e50e8103a245d694fe61bc4064f1b40e55a9b3c
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 4 Aug 2017 11:28:51 +0000 (4 11:28 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Fri, 4 Aug 2017 11:28:51 +0000 (4 11:28 +0000)
treed1a612158bc15cfab86477e76647a3c0aec3a1e2
parentda288c677bb55b6f45ad83b1b64ca7aeee5f2c1f
[PM] Make the new-pm passes behave more like the legacy passes

Summary:
Testing the new-pm passes becomes much easier once they behave more like the
old passes in terms of the order in which Scops are processed and printed. This
requires three changes:
- ScopInfo: Use an ordered map to store scops
- ScopInfo: Iterate and print Scops in reverse order to match legacy PM behaviour
- ScopDetection: print function name in ScopAnalysisPrinter

Reviewers: grosser, Meinersbur, bollu

Reviewed By: grosser

Subscribers: pollydev, llvm-commits

Differential Revision: https://reviews.llvm.org/D36303

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@310052 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
lib/Analysis/ScopDetection.cpp
lib/Analysis/ScopInfo.cpp