[llvm] r183311 - SubtargetEmitter fix
Arnold Schwaighofer
aschwaighofer at apple.com
Wed Jun 5 07:06:50 PDT 2013
Author: arnolds
Date: Wed Jun 5 09:06:50 2013
New Revision: 183311
URL: http://llvm.org/viewvc/llvm-project?rev=183311&view=rev
Log:
SubtargetEmitter fix
Don't output data if we are supposed to ignore the record.
Reapply of 183255, I don't think this was causing the tablegen segfault on linux
testers.
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=183311&r1=183310&r2=183311&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/SubtargetEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/SubtargetEmitter.cpp Wed Jun 5 09:06:50 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