diff options
| author | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2016-12-02 00:37:57 +0000 |
|---|---|---|
| committer | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2016-12-02 00:37:57 +0000 |
| commit | 42f92a7225b538752895710bac0904dd1263d68c (patch) | |
| tree | 27285d54eeee3c3a6e6710ffc86da62565163c04 /llvm/test/CodeGen/ARM/debug-info-branch-folding.ll | |
| parent | 35c5e58f8ce802e49dbadf52942779ec9078f0f2 (diff) | |
| download | bcm5719-llvm-42f92a7225b538752895710bac0904dd1263d68c.tar.gz bcm5719-llvm-42f92a7225b538752895710bac0904dd1263d68c.zip | |
When instructions are hoisted out of loops by MachineLICM, remove their debug loc.
This prevents erratic stepping behavior as well as incorrect source attribution
for sample profiling.
Reviewers: dblakie
Subscribers: llvm-commit
Differential Revision: https://reviews.llvm.org/D27290
llvm-svn: 288442
Diffstat (limited to 'llvm/test/CodeGen/ARM/debug-info-branch-folding.ll')
| -rw-r--r-- | llvm/test/CodeGen/ARM/debug-info-branch-folding.ll | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM/debug-info-branch-folding.ll b/llvm/test/CodeGen/ARM/debug-info-branch-folding.ll index b4e48c4c423..7a4483e043a 100644 --- a/llvm/test/CodeGen/ARM/debug-info-branch-folding.ll +++ b/llvm/test/CodeGen/ARM/debug-info-branch-folding.ll @@ -3,11 +3,12 @@ target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32- target triple = "thumbv7-apple-macosx10.6.7" ;CHECK: vadd.f32 q4, q8, q8 -;CHECK-NEXT: Ltmp1 -;CHECK-NEXT: LBB0_1 +;CHECK: LBB0_1: +;CHECK-NOT: beq LBB0_1 -;CHECK:@DEBUG_VALUE: x <- %Q4{{$}} -;CHECK-NEXT:@DEBUG_VALUE: y <- %Q4{{$}} +;CHECK: @DEBUG_VALUE: x <- %Q4{{$}} +;CHECK-NEXT: @DEBUG_VALUE: y <- %Q4{{$}} +;CHECK: beq LBB0_1 @.str = external constant [13 x i8] |

