This is an archive of the discontinued LLVM Phabricator instance.

GISel/Combiner: maintain created instructions in a SetVector
ClosedPublic

Authored by nhaehnle on Dec 6 2022, 2:30 PM.

Details

Summary

This is not a correctness fix because the set is only used for debug
output. However, it helps avoid noise when looking at diffs between
compiler runs.

The set is only maintained with debug output enabled, so the added cost
should be acceptable.

Diff Detail

Event Timeline

nhaehnle created this revision.Dec 6 2022, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 2:30 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
nhaehnle requested review of this revision.Dec 6 2022, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 2:30 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.Dec 6 2022, 11:19 PM

LGTM. Could put the declaration inside #ifndef NDEBUG.

This revision is now accepted and ready to land.Dec 6 2022, 11:19 PM

LGTM. Could put the declaration inside #ifndef NDEBUG.

This is in a .cpp file, so not part of the ABI, so that seems perfectly safe. Good idea!