[PATCH] D81939: [deadargelim] Attach dbg info to the insert/extractvalue instructions

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 01:35:22 PDT 2020


djtodoro marked 2 inline comments as done.
djtodoro added inline comments.


================
Comment at: llvm/test/Transforms/DeadArgElim/multdeadretval.ll:11
+; Check that every instruction inserted by -deadargelim has a debug location.
+; DEBUG: CheckModuleDebugify: PASS
+
----------------
aprantl wrote:
> I think it would be much better to have a targeted check here that checks the actual instructions. Debugify is great for finding bugs, but I wouldn't recommend it for writing testcases. In this form, nothing guarantees that the code path that triggers the bugfix is still exercised by the test if the pass is modified and the test quickly looses its usefulness.
I've just addressed this.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81939/new/

https://reviews.llvm.org/D81939





More information about the llvm-commits mailing list