[PATCH] D23715: Add @llvm.dbg.value entries for the phi node created by -mem2reg
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 13:12:05 PDT 2016
aprantl added inline comments.
================
Comment at: lib/Transforms/Utils/Local.cpp:1067
@@ +1066,3 @@
+ // not inserting the same dbg.value intrinsic over and over.
+ return any_of(APN->getParent()->getInstList(), [&](Instruction &I) {
+ DbgValueInst *DVI = dyn_cast<DbgValueInst>(&I);
----------------
Would it be possible to do something like in llvm::FindAllocaDbgDeclare() to avoid scanning all instructions here?
https://reviews.llvm.org/D23715
More information about the llvm-commits
mailing list