mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
SubtargetEmitter fix
Don't output data if we are supposed to ignore the record. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2b18526696
commit
54d63ccdb7
@ -1340,11 +1340,11 @@ void SubtargetEmitter::EmitSchedModelHelpers(std::string ClassName,
|
||||
for (std::vector<CodeGenSchedTransition>::const_iterator
|
||||
TI = SC.Transitions.begin(), TE = SC.Transitions.end();
|
||||
TI != TE; ++TI) {
|
||||
OS << " if (";
|
||||
if (*PI != 0 && !std::count(TI->ProcIndices.begin(),
|
||||
TI->ProcIndices.end(), *PI)) {
|
||||
continue;
|
||||
}
|
||||
OS << " if (";
|
||||
for (RecIter RI = TI->PredTerm.begin(), RE = TI->PredTerm.end();
|
||||
RI != RE; ++RI) {
|
||||
if (RI != TI->PredTerm.begin())
|
||||
|
Loading…
Reference in New Issue
Block a user