diff --git a/lib/Target/ARM/ARMExport.cpp b/lib/Target/ARM/ARMExport.cpp index 249d28ff2cc41ba2591ebec57314d3bb7f6e8479..7eb1f8a69ec25a989f387d70931bc24f8de96d5a 100644 --- a/lib/Target/ARM/ARMExport.cpp +++ b/lib/Target/ARM/ARMExport.cpp @@ -99,7 +99,6 @@ namespace llvm { void ARMMachineExport::serialize(MachineFunction &MF) { - errs() << "foo\n"; yaml::PMLDoc &YDoc = getPMLDoc(); Function* F = const_cast<Function*>(MF.getFunction()); MachineLoopInfo &MLI(P.getAnalysis<MachineLoopInfo>(*F)); @@ -132,7 +131,6 @@ namespace llvm { MachineLoop *Loop = MLI.getLoopFor(&(*BB)); if (Loop && Loop->getHeader() == BB) { exportLoopInfo(MF, YDoc, Loop); - errs() << "bar\n"; } while (Loop) { B->Loops.push_back(yaml::Name(Loop->getHeader()->getNumber())); @@ -149,6 +147,10 @@ namespace llvm { if (!Ins->isBundledWithPred()) { IsBundled = false; } + + // do not export loop bound helper instructions + if (Ins->isPseudo() && getOpcode(Ins).getName() == "PSEUDO_LOOPBOUND") + continue; if (!doExportInstruction(&(*Ins))) { Index++; continue; } @@ -167,9 +169,7 @@ namespace llvm { // TODO: we do not compute a hash yet PMF->Hash = StringRef("0"); - errs() << "baz\n"; YDoc.addMachineFunction(PMF); - errs() << "baz\n"; } } // end namespace llvm