diff options
author | Christopher Lamb <christopher.lamb@gmail.com> | 2008-03-13 05:47:01 +0000 |
---|---|---|
committer | Christopher Lamb <christopher.lamb@gmail.com> | 2008-03-13 05:47:01 +0000 |
commit | 6634e26aa11b0e2eabde8b3b463bb943364f8d9d (patch) | |
tree | f6acb329d49272da4adec8fba66734bba41760b5 /lib/Target/X86/X86InstrInfo.cpp | |
parent | 3bdfa04cbe42106d2dc55d0dd980ba9e52a3bd84 (diff) | |
download | llvm-6634e26aa11b0e2eabde8b3b463bb943364f8d9d.tar.gz llvm-6634e26aa11b0e2eabde8b3b463bb943364f8d9d.tar.bz2 llvm-6634e26aa11b0e2eabde8b3b463bb943364f8d9d.tar.xz |
Get rid of a pseudo instruction and replace it with subreg based operation on real instructions, ridding the asm printers of the hack used to do this previously. In the process, update LowerSubregs to be careful about eliminating copies that have side affects.
Note: the coalescer will have to be careful about this too, when it starts coalescing insert_subreg nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 8497fe3039..ff666ff3c2 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -392,7 +392,6 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm) { X86::PSHUFDri, X86::PSHUFDmi }, { X86::PSHUFHWri, X86::PSHUFHWmi }, { X86::PSHUFLWri, X86::PSHUFLWmi }, - { X86::PsMOVZX64rr32, X86::PsMOVZX64rm32 }, { X86::RCPPSr, X86::RCPPSm }, { X86::RCPPSr_Int, X86::RCPPSm_Int }, { X86::RSQRTPSr, X86::RSQRTPSm }, @@ -922,8 +921,9 @@ X86InstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI, // Build and insert into an implicit UNDEF value. This is OK because // well be shifting and then extracting the lower 16-bits. MachineInstr *Ins = - BuildMI(get(X86::INSERT_SUBREG),leaInReg).addImm(X86::IMPL_VAL_UNDEF) - .addReg(Src).addImm(X86::SUBREG_16BIT); + BuildMI(get(X86::INSERT_SUBREG),leaInReg) + .addImm(X86InstrInfo::IMPL_VAL_UNDEF) + .addReg(Src).addImm(X86::SUBREG_16BIT); NewMI = BuildMI(get(Opc), leaOutReg) .addReg(0).addImm(1 << ShAmt).addReg(leaInReg).addImm(0); |