[llvm] r183255 - SubtargetEmitter fix
Arnold Schwaighofer
aschwaighofer at apple.com
Tue Jun 4 15:15:41 PDT 2013
Author: arnolds
Date: Tue Jun 4 17:15:41 2013
New Revision: 183255
URL: http://llvm.org/viewvc/llvm-project?rev=183255&view=rev
Log:
SubtargetEmitter fix
Don't output data if we are supposed to ignore the record.
Modified:
llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
Modified: llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SubtargetEmitter.cpp?rev=183255&r1=183254&r2=183255&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/SubtargetEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/SubtargetEmitter.cpp Tue Jun 4 17:15:41 2013
@@ -1340,11 +1340,11 @@ void SubtargetEmitter::EmitSchedModelHel
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())
More information about the llvm-commits
mailing list