X86: smulo -> add is now done target-independently in DAGCombiner, remove the patterns.
llvm-svn: 131801
This commit is contained in:
parent
2fd48f2730
commit
e30b70073a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue