From 42f92a7225b538752895710bac0904dd1263d68c Mon Sep 17 00:00:00 2001 From: Wolfgang Pieb Date: Fri, 2 Dec 2016 00:37:57 +0000 Subject: 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 --- llvm/test/CodeGen/ARM/debug-info-branch-folding.ll | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'llvm/test/CodeGen/ARM/debug-info-branch-folding.ll') 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] -- cgit v1.2.3