mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 03:40:35 +00:00
Tablegen scheduling models don't reference empty itineraries as of r216919, so don't emit the unused itinerary variables
llvm-svn: 216993
This commit is contained in:
parent
5e34c59d10
commit
b6145d2e7a
@ -575,12 +575,13 @@ EmitItineraries(raw_ostream &OS,
|
||||
assert(ProcItinListsIter != ProcItinLists.end() && "bad iterator");
|
||||
std::vector<InstrItinerary> &ItinList = *ProcItinListsIter;
|
||||
|
||||
// Empty itineraries aren't referenced anywhere in the tablegen output
|
||||
// so don't emit them.
|
||||
if (ItinList.empty())
|
||||
continue;
|
||||
|
||||
OS << "\n";
|
||||
OS << "static const llvm::InstrItinerary ";
|
||||
if (ItinList.empty()) {
|
||||
OS << '*' << Name << " = nullptr;\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
// Begin processor itinerary table
|
||||
OS << Name << "[] = {\n";
|
||||
|
Loading…
Reference in New Issue
Block a user