This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Mark mi_match as nodiscard
ClosedPublic

Authored by paquette on Oct 7 2022, 2:37 PM.

Details

Summary

Typically when you match something, you want to check the result.

Fix a couple warnings in the AMDGPUPostLegalizerCombiner which appear as a result of this.

Diff Detail

Event Timeline

paquette created this revision.Oct 7 2022, 2:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2022, 2:37 PM
paquette requested review of this revision.Oct 7 2022, 2:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2022, 2:37 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Oct 7 2022, 3:17 PM
This revision is now accepted and ready to land.Oct 7 2022, 3:17 PM
This revision was automatically updated to reflect the committed changes.