diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-02-03 02:59:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-02-03 02:59:58 +0000 |
| commit | a1eac9b9789b48af3b5d93a79c229622ccacf4fc (patch) | |
| tree | b44a32bbf591f6c9867b85e61a3b5e659f58103f | |
| parent | 1ef239afb475114dbdf1dda0899b24527d9b0552 (diff) | |
| download | bcm5719-llvm-a1eac9b9789b48af3b5d93a79c229622ccacf4fc.tar.gz bcm5719-llvm-a1eac9b9789b48af3b5d93a79c229622ccacf4fc.zip | |
the X86 backend no longer needs to delete its own noop copies
llvm-svn: 25923
| -rw-r--r-- | llvm/lib/Target/X86/X86PeepholeOpt.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/X86/X86PeepholeOpt.cpp b/llvm/lib/Target/X86/X86PeepholeOpt.cpp index cb31ec335d1..40735459d6a 100644 --- a/llvm/lib/Target/X86/X86PeepholeOpt.cpp +++ b/llvm/lib/Target/X86/X86PeepholeOpt.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// // -// This file contains a peephole optimizer for the X86. +// This file contains an immediate shrinker for the X86. FIXME: Remove when +// the dag isel makes this obsolete! // //===----------------------------------------------------------------------===// @@ -61,15 +62,6 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB, MachineInstr *Next = (NextI != MBB.end()) ? &*NextI : (MachineInstr*)0; unsigned Size = 0; switch (MI->getOpcode()) { - case X86::MOV8rr: - case X86::MOV16rr: - case X86::MOV32rr: // Destroy X = X copies... - if (MI->getOperand(0).getReg() == MI->getOperand(1).getReg()) { - I = MBB.erase(I); - return true; - } - return false; - // A large number of X86 instructions have forms which take an 8-bit // immediate despite the fact that the operands are 16 or 32 bits. Because // this can save three bytes of code size (and icache space), we want to |

