Skip to content
Snippets Groups Projects
Commit fa0c0114 authored by Phillip Raffeck's avatar Phillip Raffeck Committed by Simon Schuster
Browse files

ARM: do not export loopbound helper instructions

parent 0ad37f13
Branches
No related tags found
No related merge requests found
......@@ -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()));
......@@ -150,6 +148,10 @@ namespace llvm {
IsBundled = false;
}
// do not export loop bound helper instructions
if (Ins->isPseudo() && getOpcode(Ins).getName() == "PSEUDO_LOOPBOUND")
continue;
if (!doExportInstruction(&(*Ins))) { Index++; continue; }
yaml::MachineInstruction *I = B->addInstruction(
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment