mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Fix generation of certain scheduler itineraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -218,7 +218,7 @@ void SubtargetEmitter::FormItineraryString(Record *ItinData,
|
|||||||
|
|
||||||
// For each stage
|
// For each stage
|
||||||
unsigned N = NStages = StageList.size();
|
unsigned N = NStages = StageList.size();
|
||||||
for (unsigned i = 0; i < N; i++) {
|
for (unsigned i = 0; i < N;) {
|
||||||
// Next stage
|
// Next stage
|
||||||
Record *Stage = StageList[i];
|
Record *Stage = StageList[i];
|
||||||
|
|
||||||
@@ -241,6 +241,7 @@ void SubtargetEmitter::FormItineraryString(Record *ItinData,
|
|||||||
|
|
||||||
// Close off stage
|
// Close off stage
|
||||||
ItinString += " }";
|
ItinString += " }";
|
||||||
|
if (++i < N) ItinString += ", ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user