diff options
author | Teresa Johnson <tejohnson@google.com> | 2017-08-02 20:35:29 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2017-08-02 20:35:29 +0000 |
commit | ecd901314d48f0b525dce73c4d07919acc194696 (patch) | |
tree | ccd15803c9010eca37806eb7769d4d81ef2984d3 /llvm/test/Transforms/LoopUnroll/runtime-loop5.ll | |
parent | 2e8a7d36ff0c7494fa859b14c4cf10b7dfb5c1f2 (diff) | |
download | bcm5719-llvm-ecd901314d48f0b525dce73c4d07919acc194696.tar.gz bcm5719-llvm-ecd901314d48f0b525dce73c4d07919acc194696.zip |
[PM] Split LoopUnrollPass and make partial unroller a function pass
Summary:
This is largely NFC*, in preparation for utilizing ProfileSummaryInfo
and BranchFrequencyInfo analyses. In this patch I am only doing the
splitting for the New PM, but I can do the same for the legacy PM as
a follow-on if this looks good.
*Not NFC since for partial unrolling we lose the updates done to the
loop traversal (adding new sibling and child loops) - according to
Chandler this is not very useful for partial unrolling, but it also
means that the debugging flag -unroll-revisit-child-loops no longer
works for partial unrolling.
Reviewers: chandlerc
Subscribers: mehdi_amini, mzolotukhin, eraman, llvm-commits
Differential Revision: https://reviews.llvm.org/D36157
llvm-svn: 309886
Diffstat (limited to 'llvm/test/Transforms/LoopUnroll/runtime-loop5.ll')
-rw-r--r-- | llvm/test/Transforms/LoopUnroll/runtime-loop5.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/runtime-loop5.ll b/llvm/test/Transforms/LoopUnroll/runtime-loop5.ll index 86a26baca65..ebb9a85600b 100644 --- a/llvm/test/Transforms/LoopUnroll/runtime-loop5.ll +++ b/llvm/test/Transforms/LoopUnroll/runtime-loop5.ll @@ -1,8 +1,8 @@ ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-count=16 | FileCheck --check-prefix=UNROLL-16 %s ; RUN: opt < %s -S -loop-unroll -unroll-runtime=true -unroll-count=4 | FileCheck --check-prefix=UNROLL-4 %s -; RUN: opt < %s -S -passes='require<opt-remark-emit>,loop(unroll)' -unroll-runtime=true -unroll-count=16 | FileCheck --check-prefix=UNROLL-16 %s -; RUN: opt < %s -S -passes='require<opt-remark-emit>,loop(unroll)' -unroll-runtime=true -unroll-count=4 | FileCheck --check-prefix=UNROLL-4 %s +; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-runtime=true -unroll-count=16 | FileCheck --check-prefix=UNROLL-16 %s +; RUN: opt < %s -S -passes='require<opt-remark-emit>,unroll' -unroll-runtime=true -unroll-count=4 | FileCheck --check-prefix=UNROLL-4 %s ; Given that the trip-count of this loop is a 3-bit value, we cannot ; safely unroll it with a count of anything more than 8. |