This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Do not salvage with vector node
ClosedPublic

Authored by pengfei on Jun 8 2023, 7:59 PM.

Details

Summary

rG2eb7cbf987f21 added this code, which results in crash for vector
nodes. This patch solves it by skipping for the vector nodes.

Thanks Steve for helping reducing the test case.

Co-authored-by: Steve Merritt <steve.merritt@intel.com>

Diff Detail

Event Timeline

pengfei created this revision.Jun 8 2023, 7:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2023, 7:59 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
pengfei requested review of this revision.Jun 8 2023, 7:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2023, 7:59 PM
goldstein.w.n accepted this revision.Jun 8 2023, 9:14 PM
goldstein.w.n added a subscriber: goldstein.w.n.

LGTM.

This revision is now accepted and ready to land.Jun 8 2023, 9:14 PM
This revision was landed with ongoing or failed builds.Jun 8 2023, 11:55 PM
This revision was automatically updated to reflect the committed changes.

Code change looks good, but I have some suggestions for the test.

llvm/test/DebugInfo/X86/dbg-value-no-crash.ll
3

Can you add a comment that this is about salvage debug info in SelectionDAG?

7

A test with no CHECK lines is hard to maintain, since it's unclear what is being tested for. Could you add some positive checks to the output? For example, you could compile with -stop-before=regalloc and then check for function start followed by a CHECK-NOT: DBG_VALUE

Code change looks good, but I have some suggestions for the test.

Done, thanks for the suggestions!