diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-18 20:04:21 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-18 20:04:21 +0000 |
commit | de44bc018a2dc7ceeded44d6b1ca3f280b01b859 (patch) | |
tree | 1935740927720ac3eae6d57ca4974246af381516 /llvm/lib/CodeGen/InstrSched | |
parent | 1ea6d207ce3db8dd3fb7b92233e80ce50a59a2fe (diff) | |
download | bcm5719-llvm-de44bc018a2dc7ceeded44d6b1ca3f280b01b859.tar.gz bcm5719-llvm-de44bc018a2dc7ceeded44d6b1ca3f280b01b859.zip |
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
Also, squash a use of TargetInstrInfo::isNop().
llvm-svn: 15905
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched')
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp index 13b629c1b83..fc4d6a7164d 100644 --- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -19,6 +19,7 @@ #include "llvm/Target/TargetMachine.h" #include "../../Target/SparcV9/MachineCodeForInstruction.h" #include "../../Target/SparcV9/LiveVar/FunctionLiveVarInfo.h" +#include "../../Target/SparcV9/SparcV9InstrInfo.h" #include "Support/CommandLine.h" #include <algorithm> #include <iostream> @@ -633,8 +634,7 @@ RecordSchedule(MachineBasicBlock &MBB, const SchedulingManager& S) // some NOPs from delay slots. Also, PHIs are not included in the schedule. unsigned numInstr = 0; for (MachineBasicBlock::iterator I=MBB.begin(); I != MBB.end(); ++I) - if (! mii.isNop(I->getOpcode()) && - ! mii.isDummyPhiInstr(I->getOpcode())) + if (!(I->getOpcode() == V9::NOP || I->getOpcode() == V9::PHI)) ++numInstr; assert(S.isched.getNumInstructions() >= numInstr && "Lost some non-NOP instructions during scheduling!"); @@ -645,7 +645,7 @@ RecordSchedule(MachineBasicBlock &MBB, const SchedulingManager& S) // First find the dummy instructions at the start of the basic block MachineBasicBlock::iterator I = MBB.begin(); for ( ; I != MBB.end(); ++I) - if (! mii.isDummyPhiInstr(I->getOpcode())) + if (I->getOpcode() != V9::PHI) break; // Remove all except the dummy PHI instructions from MBB, and |