[PATCH] D45397: [Mem2Reg] Create merged debug locations for inserted phis

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 10 09:28:15 PDT 2018


aprantl added inline comments.


================
Comment at: lib/Transforms/Utils/PromoteMemoryToRegister.cpp:552
   Function &F = *DT.getRoot()->getParent();
+  ConsiderDebugInfo = F.getSubprogram() != nullptr;
 
----------------
I don't think we can use this condition. LLVM supports (((debug info) being inlined into a nodebug function) being inlined into a function with debug info). You may need to just unconditionally turn this on.


https://reviews.llvm.org/D45397





More information about the llvm-commits mailing list