This is an archive of the discontinued LLVM Phabricator instance.

[MIPatternMatch] Add m_OneNonDBGUse
ClosedPublic

Authored by paquette on Jan 14 2021, 12:05 PM.

Details

Summary

Add a matcher that checks if the given subpattern has only one non-debug use.

Also improve existing m_OneUse testcase.

Diff Detail

Event Timeline

paquette requested review of this revision.Jan 14 2021, 12:05 PM
paquette created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2021, 12:05 PM
Herald added a subscriber: wdng. · View Herald Transcript
aemerson accepted this revision.Jan 14 2021, 4:24 PM

LGTM.

This revision is now accepted and ready to land.Jan 14 2021, 4:24 PM
This revision was automatically updated to reflect the committed changes.