forked from OSchip/llvm-project
SubtargetEmitter fix
Don't output data if we are supposed to ignore the record. llvm-svn: 183255
This commit is contained in:
parent
983920d1a9
commit
afe7d5c8f5
|
@ -1340,11 +1340,11 @@ void SubtargetEmitter::EmitSchedModelHelpers(std::string ClassName,
|
||||||
for (std::vector<CodeGenSchedTransition>::const_iterator
|
for (std::vector<CodeGenSchedTransition>::const_iterator
|
||||||
TI = SC.Transitions.begin(), TE = SC.Transitions.end();
|
TI = SC.Transitions.begin(), TE = SC.Transitions.end();
|
||||||
TI != TE; ++TI) {
|
TI != TE; ++TI) {
|
||||||
OS << " if (";
|
|
||||||
if (*PI != 0 && !std::count(TI->ProcIndices.begin(),
|
if (*PI != 0 && !std::count(TI->ProcIndices.begin(),
|
||||||
TI->ProcIndices.end(), *PI)) {
|
TI->ProcIndices.end(), *PI)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
OS << " if (";
|
||||||
for (RecIter RI = TI->PredTerm.begin(), RE = TI->PredTerm.end();
|
for (RecIter RI = TI->PredTerm.begin(), RE = TI->PredTerm.end();
|
||||||
RI != RE; ++RI) {
|
RI != RE; ++RI) {
|
||||||
if (RI != TI->PredTerm.begin())
|
if (RI != TI->PredTerm.begin())
|
||||||
|
|
Loading…
Reference in New Issue