]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Make vector strided store alias all other memories
authorPan Li <pan2.li@intel.com>
Thu, 19 Dec 2024 00:58:20 +0000 (08:58 +0800)
committerPan Li <pan2.li@intel.com>
Thu, 19 Dec 2024 07:59:21 +0000 (15:59 +0800)
commit46194b912780452e80c1ef9867cbcff1050231a2
treeb0a1adc9478112f4b65d3642dd8718fb2d91201f
parent87f97ffba93a2de17eca3927af901e3b3a103df7
RISC-V: Make vector strided store alias all other memories

Almost the same as the RVV strided load, the vector strided store
doesn't involve the (mem:BLK (scratch)) to alias all other memories.
It will make the alias analysis only consider the base address of
strided store.

PR target/118075

gcc/ChangeLog:

* config/riscv/vector.md: Add the (mem:BLK (scratch)) as the
lhs of strided store define insn.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/pr118075-run-1.c: New test.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/vector.md
gcc/testsuite/gcc.target/riscv/rvv/base/pr118075-run-1.c [new file with mode: 0644]