This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Add a m_SpecificReg matcher
ClosedPublic

Authored by paquette on Oct 6 2022, 10:56 AM.

Details

Summary

Similar to the specific matchers for constants.

The intention here is to make it easier to write combines which check if a specific register is used more than once.

e.g. matching patterns like:

(X + Y) == Y

Diff Detail

Event Timeline

paquette created this revision.Oct 6 2022, 10:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 10:56 AM
Herald added a subscriber: rovka. · View Herald Transcript
paquette requested review of this revision.Oct 6 2022, 10:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 10:56 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Oct 6 2022, 10:58 AM
This revision is now accepted and ready to land.Oct 6 2022, 10:58 AM
This revision was landed with ongoing or failed builds.Oct 6 2022, 11:35 AM
This revision was automatically updated to reflect the committed changes.