projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remember to actually update SplitAnalysis statistics now that we have a fancy
[oota-llvm.git]
/
lib
/
Target
/
Mips
/
MipsDelaySlotFiller.cpp
diff --git
a/lib/Target/Mips/MipsDelaySlotFiller.cpp
b/lib/Target/Mips/MipsDelaySlotFiller.cpp
index 1185abf606a5faa819541df22a19bc39f63f687f..597ea0d6c20720ec04f22f386f29df1a1ec246f8 100644
(file)
--- a/
lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/
lib/Target/Mips/MipsDelaySlotFiller.cpp
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by Bruno Cardoso Lopes and is distributed under
-//
the University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-32,7
+32,7
@@
namespace {
static char ID;
Filler(TargetMachine &tm)
static char ID;
Filler(TargetMachine &tm)
- : MachineFunctionPass(
(intptr_t)&
ID), TM(tm), TII(tm.getInstrInfo()) { }
+ : MachineFunctionPass(ID), TM(tm), TII(tm.getInstrInfo()) { }
virtual const char *getPassName() const {
return "Mips Delay Slot Filler";
virtual const char *getPassName() const {
return "Mips Delay Slot Filler";
@@
-59,10
+59,10
@@
runOnMachineBasicBlock(MachineBasicBlock &MBB)
{
bool Changed = false;
for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I)
{
bool Changed = false;
for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I)
- if (
TII->hasDelaySlot(I->getOpcode()
)) {
+ if (
I->getDesc().hasDelaySlot(
)) {
MachineBasicBlock::iterator J = I;
++J;
MachineBasicBlock::iterator J = I;
++J;
- BuildMI(MBB, J, TII->get(Mips::NOP));
+ BuildMI(MBB, J,
I->getDebugLoc(),
TII->get(Mips::NOP));
++FilledSlots;
Changed = true;
}
++FilledSlots;
Changed = true;
}