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/basic.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/basic.ll')
-rw-r--r-- | llvm/test/Transforms/LoopUnroll/basic.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/basic.ll b/llvm/test/Transforms/LoopUnroll/basic.ll index 2bfd3e6de8f..e965f2a19c0 100644 --- a/llvm/test/Transforms/LoopUnroll/basic.ll +++ b/llvm/test/Transforms/LoopUnroll/basic.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -loop-unroll -S | FileCheck %s +; RUN: opt < %s -passes='require<opt-remark-emit>,loop(unroll)' -S | FileCheck %s ; This should not unroll since the address of the loop header is taken. |