[llvm] r268181 - [X86] Add AddedComplexity to keep some similar patterns near each other in the output file.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 30 21:59:50 PDT 2016


Author: ctopper
Date: Sat Apr 30 23:59:49 2016
New Revision: 268181

URL: http://llvm.org/viewvc/llvm-project?rev=268181&view=rev
Log:
[X86] Add AddedComplexity to keep some similar patterns near each other 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=268181&r1=268180&r2=268181&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Sat Apr 30 23:59:49 2016
@@ -7247,6 +7247,7 @@ let Predicates = [UseSSE41] 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))>;
   def : Pat<(v2f64 (X86vzmovl (v2f64 VR128:$src))),




More information about the llvm-commits mailing list