diff options
| author | Dale Johannesen <dalej@apple.com> | 2009-10-12 18:49:00 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2009-10-12 18:49:00 +0000 |
| commit | 06243d7bf2db6d4067594d3827771395b426d505 (patch) | |
| tree | 223d6d412dc47dec72d49cd80da59e987c99ead2 /llvm/lib/CodeGen/TargetInstrInfoImpl.cpp | |
| parent | 4c9f0e8f53c85a5b1b062c2ca534cbb77ffb4cbb (diff) | |
| download | bcm5719-llvm-06243d7bf2db6d4067594d3827771395b426d505.tar.gz bcm5719-llvm-06243d7bf2db6d4067594d3827771395b426d505.zip | |
Revert the kludge in 76703. I got a clean
bootstrap of FSF-style PPC, so there is some
reason to believe the original bug (which was
never analyzed) has been fixed, probably by
82266.
llvm-svn: 83871
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfoImpl.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TargetInstrInfoImpl.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp b/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp index 2211308856c..c646869e8a7 100644 --- a/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp @@ -143,27 +143,6 @@ void TargetInstrInfoImpl::reMaterialize(MachineBasicBlock &MBB, MBB.insert(I, MI); } -bool TargetInstrInfoImpl::isDeadInstruction(const MachineInstr *MI) const { - const TargetInstrDesc &TID = MI->getDesc(); - if (TID.mayLoad() || TID.mayStore() || TID.isCall() || TID.isTerminator() || - TID.isCall() || TID.isBarrier() || TID.isReturn() || - TID.hasUnmodeledSideEffects()) - return false; - for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { - const MachineOperand &MO = MI->getOperand(i); - if (!MO.isReg() || !MO.getReg()) - continue; - if (MO.isDef() && !MO.isDead()) - return false; - if (MO.isUse() && MO.isKill()) - // FIXME: We can't remove kill markers or else the scavenger will assert. - // An alternative is to add a ADD pseudo instruction to replace kill - // markers. - return false; - } - return true; -} - unsigned TargetInstrInfoImpl::GetFunctionSizeInBytes(const MachineFunction &MF) const { unsigned FnSize = 0; |

