[SchedModel] Remove instregex entries that don't match any instructions
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 25 Mar 2018 19:20:08 +0000 (19:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 25 Mar 2018 19:20:08 +0000 (19:20 +0000)
commitd044f9c9a76edb566feb2a6618f652f79780a3ad
treed2a24363073114a445399df0bd2282963cddd991
parentfecb0b7874bbdcd89fc33c06b098e1d4736db4ed
[SchedModel] Remove instregex entries that don't match any instructions

This patch throws a fatal error if an instregex entry doesn't actually match any instructions. This is part of the work to reduce the compile time impact of increased instregex usage (PR35955), although the x86 models seem to be relatively clean.

All the cases I encountered have now been fixed in trunk and this will ensure they don't get reintroduced.

Differential Revision: https://reviews.llvm.org/D44687

llvm-svn: 328459
llvm/utils/TableGen/CodeGenSchedule.cpp