diff options
author | Adam Nemet <anemet@apple.com> | 2016-07-18 16:29:27 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-07-18 16:29:27 +0000 |
commit | b2593f78cabbea2703d6442c016638740fe5f660 (patch) | |
tree | 9f06e403d90ba5b30f94d26ffbe010e168a56091 /llvm/test/Transforms/LoopDistribute | |
parent | 79ac42a5c99135ed6ecf8c011471d42ec5269f6c (diff) | |
download | bcm5719-llvm-b2593f78cabbea2703d6442c016638740fe5f660.tar.gz bcm5719-llvm-b2593f78cabbea2703d6442c016638740fe5f660.zip |
[LoopDist] Port to new PM
Summary:
The direct motivation for the port is to ensure that the OptRemarkEmitter
tests work with the new PM.
This remains a function pass because we not only create multiple loops
but could also version the original loop.
In the test I need to invoke opt
with -passes='require<aa>,loop-distribute'. LoopDistribute does not
directly depend on AA however LAA does. LAA uses getCachedResult so
I *think* we need manually pull in 'aa'.
Reviewers: davidxl, silvas
Subscribers: sanjoy, llvm-commits, mzolotukhin
Differential Revision: https://reviews.llvm.org/D22437
llvm-svn: 275811
Diffstat (limited to 'llvm/test/Transforms/LoopDistribute')
-rw-r--r-- | llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness-lazy-BFI.ll | 5 | ||||
-rw-r--r-- | llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness.ll | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness-lazy-BFI.ll b/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness-lazy-BFI.ll index a67a71c5cfb..819c002e282 100644 --- a/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness-lazy-BFI.ll +++ b/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness-lazy-BFI.ll @@ -5,6 +5,11 @@ ; RUN: opt -loop-distribute -S -pass-remarks-missed=loop-distribute \ ; RUN: -debug-only=block-freq < %s 2>&1 | FileCheck %s --check-prefix=NO_HOTNESS +; RUN: opt -passes='require<aa>,loop-distribute' -S -pass-remarks-missed=loop-distribute \ +; RUN: -debug-only=block-freq -pass-remarks-with-hotness < %s 2>&1 | FileCheck %s --check-prefix=HOTNESS +; RUN: opt -passes='require<aa>,loop-distribute' -S -pass-remarks-missed=loop-distribute \ +; RUN: -debug-only=block-freq < %s 2>&1 | FileCheck %s --check-prefix=NO_HOTNESS + ; REQUIRES: asserts ; HOTNESS: block-frequency: forced diff --git a/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness.ll b/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness.ll index 21ddfcd6f52..8689bfeebc6 100644 --- a/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness.ll +++ b/llvm/test/Transforms/LoopDistribute/diagnostics-with-hotness.ll @@ -3,6 +3,11 @@ ; RUN: opt -loop-distribute -S -pass-remarks-missed=loop-distribute \ ; RUN: < %s 2>&1 | FileCheck %s --check-prefix=NO_HOTNESS +; RUN: opt -passes='require<aa>,loop-distribute' -S -pass-remarks-missed=loop-distribute \ +; RUN: -pass-remarks-with-hotness < %s 2>&1 | FileCheck %s --check-prefix=HOTNESS +; RUN: opt -passes='require<aa>,loop-distribute' -S -pass-remarks-missed=loop-distribute \ +; RUN: < %s 2>&1 | FileCheck %s --check-prefix=NO_HOTNESS + ; REQUIRES: asserts ; This is the input program: |