[PATCH] D72009: TableGen: Fix assert on PatFrags with predicate code

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 10:05:14 PST 2019


arsenm created this revision.
arsenm added reviewers: uweigand, dsanders, craig.topper.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D72009

Files:
  llvm/test/TableGen/predicate-patfags.td
  llvm/utils/TableGen/CodeGenDAGPatterns.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72009.235615.patch
Type: text/x-patch
Size: 4116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191230/cd4df039/attachment.bin>


More information about the llvm-commits mailing list