mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
remove useless or_is_add parallel's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4721,23 +4721,17 @@ def : Pat<(i32 (anyext (i8 (X86setcc_c X86_COND_B, EFLAGS)))),
|
|||||||
|
|
||||||
// (or x1, x2) -> (add x1, x2) if two operands are known not to share bits.
|
// (or x1, x2) -> (add x1, x2) if two operands are known not to share bits.
|
||||||
let AddedComplexity = 5 in { // Try this before the selecting to OR
|
let AddedComplexity = 5 in { // Try this before the selecting to OR
|
||||||
def : Pat<(parallel (or_is_add GR16:$src1, imm:$src2),
|
def : Pat<(or_is_add GR16:$src1, imm:$src2),
|
||||||
(implicit EFLAGS)),
|
|
||||||
(ADD16ri GR16:$src1, imm:$src2)>;
|
(ADD16ri GR16:$src1, imm:$src2)>;
|
||||||
def : Pat<(parallel (or_is_add GR32:$src1, imm:$src2),
|
def : Pat<(or_is_add GR32:$src1, imm:$src2),
|
||||||
(implicit EFLAGS)),
|
|
||||||
(ADD32ri GR32:$src1, imm:$src2)>;
|
(ADD32ri GR32:$src1, imm:$src2)>;
|
||||||
def : Pat<(parallel (or_is_add GR16:$src1, i16immSExt8:$src2),
|
def : Pat<(or_is_add GR16:$src1, i16immSExt8:$src2),
|
||||||
(implicit EFLAGS)),
|
|
||||||
(ADD16ri8 GR16:$src1, i16immSExt8:$src2)>;
|
(ADD16ri8 GR16:$src1, i16immSExt8:$src2)>;
|
||||||
def : Pat<(parallel (or_is_add GR32:$src1, i32immSExt8:$src2),
|
def : Pat<(or_is_add GR32:$src1, i32immSExt8:$src2),
|
||||||
(implicit EFLAGS)),
|
|
||||||
(ADD32ri8 GR32:$src1, i32immSExt8:$src2)>;
|
(ADD32ri8 GR32:$src1, i32immSExt8:$src2)>;
|
||||||
def : Pat<(parallel (or_is_add GR16:$src1, GR16:$src2),
|
def : Pat<(or_is_add GR16:$src1, GR16:$src2),
|
||||||
(implicit EFLAGS)),
|
|
||||||
(ADD16rr GR16:$src1, GR16:$src2)>;
|
(ADD16rr GR16:$src1, GR16:$src2)>;
|
||||||
def : Pat<(parallel (or_is_add GR32:$src1, GR32:$src2),
|
def : Pat<(or_is_add GR32:$src1, GR32:$src2),
|
||||||
(implicit EFLAGS)),
|
|
||||||
(ADD32rr GR32:$src1, GR32:$src2)>;
|
(ADD32rr GR32:$src1, GR32:$src2)>;
|
||||||
} // AddedComplexity
|
} // AddedComplexity
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user