From 0efe9bc9534d03fbf9dfad88ac08a75eec5f0f6c Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 12 Feb 2018 17:21:28 +0000 Subject: [PATCH] [X86] Add missing scheduling class tag for i64 absolute address moves Expand existing SchedRW to encompass these like it did for the other memory offset movs - added comments to closing braces to keep track of def scopes. We only tagged it with the itinerary class, so completeness checks were erroneously passed (PR35639). llvm-svn: 324910 --- llvm/lib/Target/X86/X86InstrInfo.td | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index b29e490ef1b6..2200f9f4d666 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -1536,7 +1536,7 @@ let Defs = [EAX] in def MOV32ao16 : Ii16<0xA1, RawFrmMemOffs, (outs), (ins offset16_32:$src), "mov{l}\t{$src, %eax|eax, $src}", [], IIC_MOV_MEM>, AdSize16, OpSize32; -} +} // mayLoad let mayStore = 1 in { let Uses = [AL] in def MOV8o32a : Ii32<0xA2, RawFrmMemOffs, (outs), (ins offset32_8:$dst), @@ -1565,8 +1565,7 @@ let Uses = [EAX] in def MOV32o16a : Ii16<0xA3, RawFrmMemOffs, (outs), (ins offset16_32:$dst), "mov{l}\t{%eax, $dst|$dst, eax}", [], IIC_MOV_MEM>, OpSize32, AdSize16; -} -} +} // mayStore // These forms all have full 64-bit absolute addresses in their instructions // and use the movabs mnemonic to indicate this specific form. @@ -1587,7 +1586,7 @@ let Defs = [RAX] in def MOV64ao64 : RIi64<0xA1, RawFrmMemOffs, (outs), (ins offset64_64:$src), "movabs{q}\t{$src, %rax|rax, $src}", [], IIC_MOV_MEM>, AdSize64; -} +} // mayLoad let mayStore = 1 in { let Uses = [AL] in @@ -1606,7 +1605,8 @@ let Uses = [RAX] in def MOV64o64a : RIi64<0xA3, RawFrmMemOffs, (outs), (ins offset64_64:$dst), "movabs{q}\t{%rax, $dst|$dst, rax}", [], IIC_MOV_MEM>, AdSize64; -} +} // mayStore +} // SchedRW } // hasSideEffects = 0 let isCodeGenOnly = 1, ForceDisassemble = 1, hasSideEffects = 0,