This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Fix assert on PatFrags with predicate code
ClosedPublic

Authored by arsenm on Dec 30 2019, 9:57 AM.

Details

Summary

This assumed a single pattern if there was a predicate. Relax this a
bit, and allow multiple patterns as long as they have the same class.

This was only broken for the DAG path. GlobalISel seems to have
handled this correctly already.

Diff Detail

Event Timeline

arsenm created this revision.Dec 30 2019, 9:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 30 2019, 9:57 AM
Herald added a subscriber: wdng. · View Herald Transcript
craig.topper accepted this revision.Dec 30 2019, 11:15 AM

LGTM I got bit by this the other day doing some strict FP changes.

This revision is now accepted and ready to land.Dec 30 2019, 11:15 AM

LGTM too. IIRC, the ability to have multiple trees came after the original implementation so I think we just had a direct conversion.