Skip to content

fix SSA conversion of mismatched memops

Luc Van Oostenryck linux-sparse 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ssa: add some testcases for mismatched memopsvalidation/mem2reg/not-same-memop0.c validation/mem2reg/packed-bitfield.c+85 -00 replies
2/4ssa: the sparse set is not neededMakefile ssa.c sset.c +1 more+4 -920 replies
3/4ssa: avoid SSA conversion of packed bitfieldsssa.c validation/mem2reg/packed-bitfield.c+3 -10 replies
4/4ssa: fix conversion with mismatched size or offsetlinearize.h ssa.c validation/mem2reg/not-same-memop0.c+80 -200 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/4] fix SSA conversion of mismatched memops

The SSA conversion works under the assumption that all the memory operations on a given symbol always refer to the same object (same size, offset and type/kind of object) but doesn't check this well enough. This series now does.

Luc Van Oostenryck (4):
ssa: add some testcases for mismatched memops
ssa: the sparse set is not needed
ssa: avoid SSA conversion of packed bitfields
ssa: fix conversion with mismatched size or offset

 Makefile                             |   1 -
 linearize.h                          |   2 +-
 ssa.c                                | 111 +++++++++++++++++++++------
 sset.c                               |  28 -------
 sset.h                               |  56 --------------
 validation/mem2reg/not-same-memop0.c |  48 ++++++++++++
 validation/mem2reg/packed-bitfield.c |  35 +++++++++
 7 files changed, 170 insertions(+), 111 deletions(-)
 delete mode 100644 sset.c
 delete mode 100644 sset.h
 create mode 100644 validation/mem2reg/not-same-memop0.c
 create mode 100644 validation/mem2reg/packed-bitfield.c
Signature · 1 line
2.30.0