This is an archive of the discontinued LLVM Phabricator instance.

[SDAG] Print divergence in SDNode::dump
ClosedPublic

Authored by rampitec on Sep 15 2022, 4:01 PM.

Details

Summary

If target does not support divergence the field is set to false
and not printed.

Diff Detail

Event Timeline

rampitec created this revision.Sep 15 2022, 4:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 4:01 PM
rampitec requested review of this revision.Sep 15 2022, 4:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 4:01 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm added inline comments.Sep 15 2022, 5:14 PM
llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
1070

Should print this before the operands so it's attached to the node name. Placement at the end makes it look like it's the one operand

foad added a subscriber: foad.Sep 16 2022, 1:53 AM

Can this use the same # D:1 style of output that you get with -dag-dump-verbose?

rampitec updated this revision to Diff 460835.Sep 16 2022, 11:36 AM
rampitec marked an inline comment as done.

Moved info right after the node and use the same style as -dag-dump-verbose.
Avoid info duplication if -dag-dump-verbose is used.

arsenm accepted this revision.Sep 16 2022, 11:38 AM

Not sure what the point of the ":1" part is

This revision is now accepted and ready to land.Sep 16 2022, 11:38 AM

Not sure what the point of the ":1" part is

Just to match -dag-dump-verbose style. This used D:0 and D:1 to always dump it.

This revision was landed with ongoing or failed builds.Sep 16 2022, 11:43 AM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Sep 16 2022, 12:29 PM

The test fails on non-linux:
http://45.33.8.238/macm1/44600/step_11.txt
http://45.33.8.238/win/66403/step_11.txt

Don't use |&, it's not portable.

Please take a look and revert for now if it takes a while to fix.

The test fails on non-linux:
http://45.33.8.238/macm1/44600/step_11.txt
http://45.33.8.238/win/66403/step_11.txt

Don't use |&, it's not portable.

Please take a look and revert for now if it takes a while to fix.

Already fixed: https://reviews.llvm.org/rG167826ee12e7
Sorry.