diff options
author | Zhaoshi Zheng <zhaoshiz@coduaurora.org> | 2017-12-26 23:31:21 +0000 |
---|---|---|
committer | Zhaoshi Zheng <zhaoshiz@coduaurora.org> | 2017-12-26 23:31:21 +0000 |
commit | 8af1e1cb784ae2a94775fcbd04ad283f8702606e (patch) | |
tree | 4f5ce16b0656adb5cfbd2b4f2c15d567dcf6d902 /llvm/test/Transforms/LoopUnroll/runtime-loop1.ll | |
parent | b17c204cc010b821659e500ceb9a2118a90b2b2e (diff) | |
download | bcm5719-llvm-8af1e1cb784ae2a94775fcbd04ad283f8702606e.tar.gz bcm5719-llvm-8af1e1cb784ae2a94775fcbd04ad283f8702606e.zip |
[Unroll][DebugInfo] Propagate loop body's debug location to epilog preheader
NewExit and epilog PreHeader should has the same debug loc as the original loop
body, instead of original loop exit.
llvm-svn: 321465
Diffstat (limited to 'llvm/test/Transforms/LoopUnroll/runtime-loop1.ll')
-rw-r--r-- | llvm/test/Transforms/LoopUnroll/runtime-loop1.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll b/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll index d180980c95b..32463373ca9 100644 --- a/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll +++ b/llvm/test/Transforms/LoopUnroll/runtime-loop1.ll @@ -13,9 +13,11 @@ ; EPILOG: br i1 %niter.ncmp.1, label %for.end.loopexit.unr-lcssa.loopexit, label %for.body, !dbg [[BODY_LOC:![0-9]+]] ; EPILOG-NOT: br i1 %niter.ncmp.2, label %for.end.loopexit{{.*}}, label %for.body ; EPILOG: for.body.epil.preheader: -; EPILOG: br label %for.body.epil, !dbg [[EXIT_LOC:![0-9]+]] +; EPILOG: br label %for.body.epil, !dbg [[BODY_LOC]] ; EPILOG: for.body.epil: -; EPILOG: br label %for.end.loopexit.epilog-lcssa, !dbg [[BODY_LOC:![0-9]+]] +; EPILOG: br label %for.end.loopexit.epilog-lcssa, !dbg [[BODY_LOC]] +; EPILOG: for.end.loopexit: +; EPILOG: br label %for.end, !dbg [[EXIT_LOC:![0-9]+]] ; EPILOG-DAG: [[PH_LOC]] = !DILocation(line: 101, column: 1, scope: !{{.*}}) ; EPILOG-DAG: [[BODY_LOC]] = !DILocation(line: 102, column: 1, scope: !{{.*}}) |