Revert r157755.

The commit is intended to fix rdar://11540023.
It is implemented as part of peephole optimization. We can actually implement
this in the SelectionDAG lowering phase.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Manman Ren
2012-06-06 23:53:03 +00:00
parent aed04d12f8
commit 2afde7782d
5 changed files with 0 additions and 61 deletions

View File

@@ -640,14 +640,6 @@ public:
return false;
}
/// OptimizeSubInstr - See if the SUB instruction can be converted into
/// something more efficient E.g., on X86, we can replace SUB with CMP
/// if the actual result of SUB is not used.
virtual bool OptimizeSubInstr(MachineInstr *SubInstr,
const MachineRegisterInfo *MRI) const {
return false;
}
/// FoldImmediate - 'Reg' is known to be defined by a move immediate
/// instruction, try to fold the immediate into the use instruction.
virtual bool FoldImmediate(MachineInstr *UseMI, MachineInstr *DefMI,