llvm.org GIT mirror llvm / 9fb630e
Do not assign new discriminator for all intrinsics. Summary: We do not care about intrinsic calls when assigning discriminators. Reviewers: davidxl, dnovillo Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23212 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277843 91177308-0d34-0410-b5e6-96231b3b80d8 Dehao Chen 3 years ago
2 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
183183 // discriminator for this instruction.
184184 for (BasicBlock &B : F) {
185185 for (auto &I : B.getInstList()) {
186 if (isa<DbgInfoIntrinsic>(&I))
186 if (isa<IntrinsicInst>(&I))
187187 continue;
188188 const DILocation *DIL = I.getDebugLoc();
189189 if (!DIL)
221221 LocationSet CallLocations;
222222 for (auto &I : B.getInstList()) {
223223 CallInst *Current = dyn_cast(&I);
224 if (!Current || isa<DbgInfoIntrinsic>(&I))
224 if (!Current || isa<IntrinsicInst>(&I))
225225 continue;
226226
227227 DILocation *CurrentDIL = Current->getDebugLoc();
1111 define void @_Z3foov() #0 !dbg !4 {
1212 call void @_Z3barv(), !dbg !10
1313 ; CHECK: call void @_Z3barv(), !dbg ![[CALL0:[0-9]+]]
14 %a = alloca [100 x i8], align 16
15 %b = bitcast [100 x i8]* %a to i8*
16 call void @llvm.lifetime.start(i64 100, i8* %b), !dbg !11
17 call void @llvm.lifetime.end(i64 100, i8* %b), !dbg !11
1418 call void @_Z3barv(), !dbg !11
1519 ; CHECK: call void @_Z3barv(), !dbg ![[CALL1:[0-9]+]]
1620 call void @_Z3barv(), !dbg !12
1923 }
2024
2125 declare void @_Z3barv() #1
26 declare void @llvm.lifetime.start(i64, i8* nocapture) nounwind argmemonly
27 declare void @llvm.lifetime.end(i64, i8* nocapture) nounwind argmemonly
2228
2329 attributes #0 = { uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
2430 attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }