diff options
author | Richard Biener <rguenther@suse.de> | 2021-08-16 15:17:08 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-08-17 09:24:21 +0200 |
commit | 0215b3559e55f39f38e10984a804c53907f7491c (patch) | |
tree | e68670344dedba214ac58bb684efe45e21c2cfab /gcc/testsuite/c-c++-common/raw-string-18.c | |
parent | 75a7176575c409940b66020def23508f5701f5fb (diff) | |
download | gcc-0215b3559e55f39f38e10984a804c53907f7491c.zip gcc-0215b3559e55f39f38e10984a804c53907f7491c.tar.gz gcc-0215b3559e55f39f38e10984a804c53907f7491c.tar.bz2 |
tree-optimization/101925 - fix VN with reverse storage order
This fixes value-numbering breaking reverse storage order accesses
due to a missed check. It adds a new overload for
reverse_storage_order_for_component_p and sets reversed on the
VN IL ops for component and array accesses accordingly.
It also compares the reversed reference ops flag on reference
lookup.
2021-08-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/101925
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
reverse on COMPONENT_REF and ARRAY_REF according to
what reverse_storage_order_for_component_p does.
(vn_reference_eq): Compare reversed on reference ops.
(reverse_storage_order_for_component_p): New overload.
(vn_reference_lookup_3): Check reverse_storage_order_for_component_p
on the reference looked up.
* gcc.dg/sso-16.c: New testcase.
Diffstat (limited to 'gcc/testsuite/c-c++-common/raw-string-18.c')
0 files changed, 0 insertions, 0 deletions