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/full-unroll-heuristics-dce.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/full-unroll-heuristics-dce.ll')
| -rw-r--r-- | llvm/test/Transforms/LoopUnroll/full-unroll-heuristics-dce.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/full-unroll-heuristics-dce.ll b/llvm/test/Transforms/LoopUnroll/full-unroll-heuristics-dce.ll index 83c105ca23f..5a3123df507 100644 --- a/llvm/test/Transforms/LoopUnroll/full-unroll-heuristics-dce.ll +++ b/llvm/test/Transforms/LoopUnroll/full-unroll-heuristics-dce.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -S -loop-unroll -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=12 -unroll-max-percent-threshold-boost=400 | FileCheck %s +; RUN: opt < %s -S -passes='require<opt-remark-emit>,loop(unroll)' -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=12 -unroll-max-percent-threshold-boost=400 | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" @known_constant = internal unnamed_addr constant [10 x i32] [i32 0, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0], align 16 |

