[PATCH] D28390: [DWARF] LICM should null out the debug loc of hoisted loop invariant instructions

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 08:37:12 PST 2017


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

This is consistent with https://reviews.llvm.org/D27857.



================
Comment at: lib/Transforms/Scalar/LICM.cpp:774
+  // behavior?
+  if (!isa<CallInst>(I))
+    I.setDebugLoc(DebugLoc());
----------------
aprantl wrote:
> Whate happens when isa<DebugIntrinsicInst>?
Oh nevermind. They are calls.


https://reviews.llvm.org/D28390





More information about the llvm-commits mailing list