[avx] Add the AddedComplexity to the VINSERTI128 avx2 patterns to give
authorChad Rosier <mcrosier@apple.com>
Tue, 20 Mar 2012 19:45:07 +0000 (19:45 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 20 Mar 2012 19:45:07 +0000 (19:45 +0000)
precedence over the VINSERTF128 avx1 patterns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153114 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSSE.td

index 2e1794cc114e5d85eb9ad2022a8ccceb2a595bcf..02205bb2c799654dff424ec2e26cce1620a27e2f 100644 (file)
@@ -7739,7 +7739,7 @@ def VINSERTI128rm : AVX2AIi8<0x38, MRMSrcMem, (outs VR256:$dst),
             (int_x86_avx2_vinserti128 VR256:$src1, (memopv2i64 addr:$src2),
              imm:$src3))]>, VEX_4V;
 
-let Predicates = [HasAVX2] in {
+let Predicates = [HasAVX2], AddedComplexity = 1 in {
 def : Pat<(vinsertf128_insert:$ins (v4i64 VR256:$src1), (v2i64 VR128:$src2),
                                    (i32 imm)),
           (VINSERTI128rr VR256:$src1, VR128:$src2,