[llvm] r268184 - [X86] Add an AddedComplexity to another pattern to put it near similar in the output file.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 30 22:22:16 PDT 2016


Author: ctopper
Date: Sun May  1 00:22:15 2016
New Revision: 268184

URL: http://llvm.org/viewvc/llvm-project?rev=268184&view=rev
Log:
[X86] Add an AddedComplexity to another pattern to put it near similar in the output file.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrSSE.td

Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=268184&r1=268183&r2=268184&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Sun May  1 00:22:15 2016
@@ -7243,11 +7243,10 @@ let Predicates = [UseAVX] in {
 // on targets where they have equal performance. These were changed to use
 // blends because blends have better throughput on SandyBridge and Haswell, but
 // movs[s/d] are 1-2 byte shorter instructions.
-let Predicates = [UseSSE41] in {
+let Predicates = [UseSSE41], AddedComplexity = 15 in {
   // With SSE41 we can use blends for these patterns.
   def : Pat<(v4f32 (X86vzmovl (v4f32 VR128:$src))),
             (BLENDPSrri (v4f32 (V_SET0)), VR128:$src, (i8 1))>;
-  let AddedComplexity = 15 in
   def : Pat<(v4i32 (X86vzmovl (v4i32 VR128:$src))),
             (PBLENDWrri (v4i32 (V_SET0)), VR128:$src, (i8 3))>;
 }




More information about the llvm-commits mailing list