This is an archive of the discontinued LLVM Phabricator instance.

[debuginfo-tests] Un-XFAIL now passing unused-merged-value.c test
ClosedPublic

Authored by Michael137 on Aug 25 2022, 8:10 AM.

Details

Summary

This test would previously expect one of the parameters to have
an incorrect DW_AT_location. Stepping through fun with a debugger
would then not reflect updates to one of the parameters.

With a recent change to Clang's DeadArgumentEliminationPass
(see 879f5118fc74657e4a5c4eff6810098e1eed75ac) the generated
DWARF does not contain a location for parama, and stepping through
the function with lldb works as expected.

Diff Detail

Event Timeline

Michael137 created this revision.Aug 25 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 8:10 AM
Michael137 requested review of this revision.Aug 25 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 8:10 AM
Michael137 added a comment.EditedAug 25 2022, 8:11 AM

@Orlando FYI, this test now XPASSes as of 879f5118fc74657e4a5c4eff6810098e1eed75ac (https://reviews.llvm.org/D128830)

Do you want to flip the XFAIL or find another way of reproducing the behaviour?

Michael137 edited the summary of this revision. (Show Details)Aug 25 2022, 8:20 AM
Orlando accepted this revision.Aug 25 2022, 8:26 AM

Hi @Michael137. Removing the XFAIL is ok in this case - "optimized out" is preferable to seeing incorrect values and having the test pass now that this is the case is intended. Thanks for checking and updating this!

cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c
1–4

nit: missing full stop?

This revision is now accepted and ready to land.Aug 25 2022, 8:26 AM
Michael137 marked an inline comment as done.Aug 25 2022, 8:43 AM
This revision was landed with ongoing or failed builds.Aug 25 2022, 8:44 AM
This revision was automatically updated to reflect the committed changes.
Michael137 retitled this revision from [debuginfo-tests] Un-XFAIL no passing unused-merged-value.c test to [debuginfo-tests] Un-XFAIL now passing unused-merged-value.c test.