diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-05-21 18:32:01 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-05-21 18:32:01 +0000 |
commit | b22da2a72c51066a73134e0e5ff48877bd8d88c6 (patch) | |
tree | ab3dd45c7fc64a311695586999e0e6bf2e40b2d7 /lib/Target/X86/X86InstrCompiler.td | |
parent | f55d26e78851c2c09f8b09cfd7e7bbda7130d93b (diff) | |
download | external_llvm-b22da2a72c51066a73134e0e5ff48877bd8d88c6.zip external_llvm-b22da2a72c51066a73134e0e5ff48877bd8d88c6.tar.gz external_llvm-b22da2a72c51066a73134e0e5ff48877bd8d88c6.tar.bz2 |
X86: smulo -> add is now done target-independently in DAGCombiner, remove the patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrCompiler.td')
-rw-r--r-- | lib/Target/X86/X86InstrCompiler.td | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Target/X86/X86InstrCompiler.td b/lib/Target/X86/X86InstrCompiler.td index 0c70a0f..33534cd 100644 --- a/lib/Target/X86/X86InstrCompiler.td +++ b/lib/Target/X86/X86InstrCompiler.td @@ -1524,12 +1524,6 @@ def : Pat<(mul (loadi16 addr:$src1), i16immSExt8:$src2), 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 |