This is an archive of the discontinued LLVM Phabricator instance.

Add option to limit Debugify to locations (omitting variables)
ClosedPublic

Authored by dsanders on Apr 3 2020, 4:37 PM.

Details

Summary

It can be helpful to test behaviour w.r.t locations without having DEBUG_VALUE
around. In particular, because DEBUG_VALUE has the potential to change CodeGen
behaviour (e.g. hasOneUse() vs hasOneNonDbgUse()) while locations generally
don't.

Diff Detail

Event Timeline

dsanders created this revision.Apr 3 2020, 4:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2020, 4:37 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
dsanders added a reviewer: vsk.Apr 3 2020, 5:35 PM

I know it's a debugging/testing option, but it would be good to have a test that shows the two different levels do what you want.

vsk added a comment.Apr 6 2020, 11:49 AM

I know it's a debugging/testing option, but it would be good to have a test that shows the two different levels do what you want.

Agreed. The patch looks good to me otherwise.

dsanders updated this revision to Diff 255437.Apr 6 2020, 12:17 PM

+ test case

vsk accepted this revision.Apr 6 2020, 12:30 PM

Thanks!

This revision is now accepted and ready to land.Apr 6 2020, 12:30 PM
This revision was automatically updated to reflect the committed changes.