Skip to content

teach memory simplification about ASM instructions

Luc Van Oostenryck linux-sparse 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5reorg dominates()flow.c+7 -40 replies
2/5asm-mem: add testcase for missing reload after asm memopsvalidation/mem2reg/asm-reload0.c+15 -00 replies
3/5asm-mem: does it clobber memory?linearize.c linearize.h+8 -10 replies
4/5asm-mem: does it output to memory?linearize.c linearize.h+2 -00 replies
5/5asm-mem: teach dominates() about OP_ASMflow.c validation/mem2reg/asm-reload0.c+6 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] teach memory simplification about ASM instructions

This series fixes simplify_memops() which didn't took in account the fact that ASM instructions can also modify the content of the memory:
either because it contains an output memory operand, or because it explicetly clobbers memory in some other way.

Luc Van Oostenryck (5):
reorg dominates()
asm-mem: add testcase for missing reload after asm memops
asm-mem: does it clobber memory?
asm-mem: does it output to memory?
asm-mem: teach dominates() about OP_ASM

 flow.c                           | 17 +++++++++++++----
 linearize.c                      |  9 ++++++++-
 linearize.h                      |  2 ++
 validation/mem2reg/asm-reload0.c | 14 ++++++++++++++
 4 files changed, 37 insertions(+), 5 deletions(-)
 create mode 100644 validation/mem2reg/asm-reload0.c

base-commit: 2494587e823700458923052b17b0b981be92d776

Signature · 1 line
2.30.0