]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix oversight in handling of reverse SSO in SRA pass
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 5 Aug 2021 08:21:30 +0000 (10:21 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 5 Aug 2021 08:24:50 +0000 (10:24 +0200)
commit4e3129b0caceec008a940aa5eada253cd0f0b3ec
treee69ff830c7b9b55901777ecd49a1dd3bab7c9021
parentac8a2fbedf59eecda6d1c049952e10946ffc4a61
Fix oversight in handling of reverse SSO in SRA pass

The scalar storage order does not apply to pointer and vector components.

gcc/
PR tree-optimization/101626
* tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
reverse scalar storage order on a pointer or vector component.

gcc/testsuite/
* gcc.dg/sso-15.c: New test.
gcc/testsuite/gcc.dg/sso-15.c [new file with mode: 0644]
gcc/tree-sra.c