diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-04 22:15:41 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-04 22:15:41 +0000 |
commit | 54d63ccdb74b11e8f2350c1fd451dbdaf333285a (patch) | |
tree | 1449bb080b1e751207222846f19e1a30d1115686 /utils/TableGen | |
parent | 2b1852669631241a908575b849f14775cb7a2d58 (diff) | |
download | external_llvm-54d63ccdb74b11e8f2350c1fd451dbdaf333285a.zip external_llvm-54d63ccdb74b11e8f2350c1fd451dbdaf333285a.tar.gz external_llvm-54d63ccdb74b11e8f2350c1fd451dbdaf333285a.tar.bz2 |
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
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 4918b1b..993eead 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -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()) |