This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Add predicate checks to isel patterns for default HwMode.
ClosedPublic

Authored by craig.topper on Apr 24 2021, 2:05 PM.

Details

Summary

As discussed in D100691 and based on D100889.

I removed the ModeChecks cache which provides little value. Reduced
from three loops to two. Used ArrayRef to pass the Predicate to
AppendPattern to avoid needing to construct a vector for single
mode. Used SmallVector to avoid heap allocation constructing
DefaultCheck for the in tree targets the use it.

Diff Detail

Event Timeline

craig.topper requested review of this revision.Apr 24 2021, 2:05 PM
craig.topper created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2021, 2:05 PM
kparzysz accepted this revision.Apr 27 2021, 5:55 AM
This revision is now accepted and ready to land.Apr 27 2021, 5:55 AM