[llvm-commits] [llvm] r131801 - /llvm/trunk/lib/Target/X86/X86InstrCompiler.td

Benjamin Kramer benny.kra at googlemail.com
Sat May 21 11:32:01 PDT 2011


Author: d0k
Date: Sat May 21 13:32:01 2011
New Revision: 131801

URL: http://llvm.org/viewvc/llvm-project?rev=131801&view=rev
Log:
X86: smulo -> add is now done target-independently in DAGCombiner, remove the patterns.

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

Modified: llvm/trunk/lib/Target/X86/X86InstrCompiler.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrCompiler.td?rev=131801&r1=131800&r2=131801&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrCompiler.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrCompiler.td Sat May 21 13:32:01 2011
@@ -1524,12 +1524,6 @@
 def : Pat<(mul (loadi32 addr:$src1), i32immSExt8:$src2),
           (IMUL32rmi8 addr:$src1, i32immSExt8:$src2)>;
 
-// Optimize multiply by 2 with EFLAGS result.
-let AddedComplexity = 2 in {
-def : Pat<(X86smul_flag GR16:$src1, 2), (ADD16rr GR16:$src1, GR16:$src1)>;
-def : Pat<(X86smul_flag GR32:$src1, 2), (ADD32rr GR32:$src1, GR32:$src1)>;
-}
-
 // Patterns for nodes that do not produce flags, for instructions that do.
 
 // addition





More information about the llvm-commits mailing list