diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2017-01-25 02:49:01 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2017-01-25 02:49:01 +0000 |
commit | ce40fa13ceb88dce5834e18da332981bc0fd5327 (patch) | |
tree | e5d33221f6597262beceb497202509e211c8c990 /llvm/test/Transforms/LoopUnroll/runtime-loop1.ll | |
parent | 05a5f7dc0b6e5c167afc6dde6dff1810af198f8e (diff) | |
download | bcm5719-llvm-ce40fa13ceb88dce5834e18da332981bc0fd5327.tar.gz bcm5719-llvm-ce40fa13ceb88dce5834e18da332981bc0fd5327.zip |
[PM] Teach LoopUnroll to update the LPM infrastructure as it unrolls
loops.
We do this by reconstructing the newly added loops after the unroll
completes to avoid threading pass manager details through all the mess
of the unrolling infrastructure.
I've enabled some extra assertions in the LPM to try and catch issues
here and enabled a bunch of unroller tests to try and make sure this is
sane.
Currently, I'm manually running loop-simplify when needed. That should
go away once it is folded into the LPM infrastructure.
Differential Revision: https://reviews.llvm.org/D28848
llvm-svn: 293011
Diffstat (limited to 'llvm/test/Transforms/LoopUnroll/runtime-loop1.ll')
-rw-r--r-- | llvm/test/Transforms/LoopUnroll/runtime-loop1.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll b/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll index 5d7c6482478..d32c83571b5 100644 --- a/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll +++ b/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll @@ -1,6 +1,9 @@ ; RUN: opt < %s -S -loop-unroll -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=true | FileCheck %s -check-prefix=EPILOG ; RUN: opt < %s -S -loop-unroll -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=false | FileCheck %s -check-prefix=PROLOG +; RUN: opt < %s -S -passes='require<opt-remark-emit>,loop(unroll)' -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=true | FileCheck %s -check-prefix=EPILOG +; RUN: opt < %s -S -passes='require<opt-remark-emit>,loop(unroll)' -unroll-runtime -unroll-count=2 -unroll-runtime-epilog=false | FileCheck %s -check-prefix=PROLOG + ; This tests that setting the unroll count works |