[llvm] r199365 - Copy segment register when optimizing to MOV8ao8/MOV16ao16/MOV32ao32.
Chandler Carruth
chandlerc at google.com
Thu Jan 16 00:14:38 PST 2014
Test case?
On Wed, Jan 15, 2014 at 11:57 PM, Craig Topper <craig.topper at gmail.com>wrote:
> Author: ctopper
> Date: Thu Jan 16 01:57:45 2014
> New Revision: 199365
>
> URL: http://llvm.org/viewvc/llvm-project?rev=199365&view=rev
> Log:
> Copy segment register when optimizing to MOV8ao8/MOV16ao16/MOV32ao32.
>
> Modified:
> llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
>
> Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=199365&r1=199364&r2=199365&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
> +++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Thu Jan 16 01:57:45 2014
> @@ -323,15 +323,16 @@ static void SimplifyShortMoveForm(X86Asm
> if (Absolute &&
> (Inst.getOperand(AddrBase + 0).getReg() != 0 ||
> Inst.getOperand(AddrBase + 2).getReg() != 0 ||
> - Inst.getOperand(AddrBase + 4).getReg() != 0 ||
> Inst.getOperand(AddrBase + 1).getImm() != 1))
> return;
>
> // If so, rewrite the instruction.
> MCOperand Saved = Inst.getOperand(AddrOp);
> + MCOperand Seg = Inst.getOperand(AddrBase + 4);
> Inst = MCInst();
> Inst.setOpcode(Opcode);
> Inst.addOperand(Saved);
> + Inst.addOperand(Seg);
> }
>
> static unsigned getRetOpcode(const X86Subtarget &Subtarget)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140116/850bbe86/attachment.html>
More information about the llvm-commits
mailing list