Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 43680a0

Browse files
committed
[X86] Remove AddedComplexity from MMX_X86movw2d patterns.
There were only 3 patterns with this node as a root and they all the same AddedComplexity. So this doesn't really do anything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336711 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 7613264 commit 43680a0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/Target/X86/X86InstrMMX.td

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,12 @@ def MMX_MOVD64rm : MMXI<0x6E, MRMSrcMem, (outs VR64:$dst), (ins i32mem:$src),
173173
Sched<[WriteVecLoad]>;
174174

175175
let Predicates = [HasMMX] in {
176-
let AddedComplexity = 15 in
177-
def : Pat<(x86mmx (MMX_X86movw2d GR32:$src)),
178-
(MMX_MOVD64rr GR32:$src)>;
179-
let AddedComplexity = 20 in {
180-
def : Pat<(x86mmx (MMX_X86movw2d (i32 0))),
181-
(MMX_SET0)>;
182-
def : Pat<(x86mmx (MMX_X86movw2d (loadi32 addr:$src))),
183-
(MMX_MOVD64rm addr:$src)>;
184-
}
176+
def : Pat<(x86mmx (MMX_X86movw2d GR32:$src)),
177+
(MMX_MOVD64rr GR32:$src)>;
178+
def : Pat<(x86mmx (MMX_X86movw2d (i32 0))),
179+
(MMX_SET0)>;
180+
def : Pat<(x86mmx (MMX_X86movw2d (loadi32 addr:$src))),
181+
(MMX_MOVD64rm addr:$src)>;
185182
}
186183

187184
let mayStore = 1 in

0 commit comments

Comments
 (0)