factorization of distributive operations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | add testscases for some factorization of distributive operationsvalidation/ validation/ validation/ +4 more | +193 | 0 replies | |
| 2/8 | reassoc: add helper can_move_to()simplify.c | +37 | 0 replies | |
| 3/8 | add helper make_insn_pair() & swap_insn()simplify.c | +31 | 0 replies | |
| 4/8 | add helper replace_binop()simplify.c | +17 | 0 replies | |
| 5/8 | refactor simplify_add() to avoid code duplication (preparation)simplify.c | +2 | 0 replies | |
| 6/8 | refactor simplify_add() to avoid code duplicationsimplify.c | +9 | 0 replies | |
| 7/8 | factorize (x OP1 z) OP2 (y OP1 z) into (x OP2 y) OP1 zsimplify.c validation/ validation/ +2 more | +78 | 0 replies | |
| 8/8 | factorize SHIFT(x, s) OP SHIFT(y, s) into SHIFT((x OP y), s)simplify.c validation/ validation/ +1 more | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] factorization of distributive operations
This series ad the factorization of distributive operations involving bitwise operators as well as the more classical
(x * z) + (y * z) --> (x + y) * z
Luc Van Oostenryck (8):
add testscases for some factorization of distributive operations
reassoc: add helper can_move_to()
add helper make_insn_pair() & swap_insn()
add helper replace_binop()
refactor simplify_add() to avoid code duplication (preparation) refactor simplify_add() to avoid code duplication factorize (x OP1 z) OP2 (y OP1 z) into (x OP2 y) OP1 z factorize SHIFT(x, s) OP SHIFT(y, s) into SHIFT((x OP y), s)
simplify.c | 217 +++++++++++++++++++++++++++--- validation/optim/fact-add-mul.c | 27 ++++ validation/optim/fact-and-ior.c | 27 ++++ validation/optim/fact-and-shift.c | 26 ++++ validation/optim/fact-ior-and.c | 27 ++++ validation/optim/fact-ior-shift.c | 26 ++++ validation/optim/fact-xor-and.c | 27 ++++ validation/optim/fact-xor-shift.c | 26 ++++ 8 files changed, 386 insertions(+), 17 deletions(-) create mode 100644 validation/optim/fact-add-mul.c create mode 100644 validation/optim/fact-and-ior.c create mode 100644 validation/optim/fact-and-shift.c create mode 100644 validation/optim/fact-ior-and.c create mode 100644 validation/optim/fact-ior-shift.c create mode 100644 validation/optim/fact-xor-and.c create mode 100644 validation/optim/fact-xor-shift.c
Signature · 1 line
2.29.2