[PATCH] D27471: [BDCE/DebugInfo] Preserve llvm.dbg.value's argument

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 12:42:42 PST 2016


aprantl added inline comments.


================
Comment at: lib/Transforms/Scalar/BDCE.cpp:45
+    if (I.mayHaveSideEffects() && !I.hasNUsesOrMore(1))
+      continue;
+
----------------
It looks like this alters the behavior of the optimization beyond debug info. It would be great if someone else could sign off on this change.


https://reviews.llvm.org/D27471





More information about the llvm-commits mailing list