]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/102798 - avoid copying PTA info to old SSA names
authorRichard Biener <rguenther@suse.de>
Mon, 18 Oct 2021 07:10:43 +0000 (09:10 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 8 Nov 2021 12:45:22 +0000 (13:45 +0100)
commit1631d6d2910e03e4517079d6e6ad0ae1aeb24dfa
tree85545d87e5778e3937efb79c01822ee2747ad801
parentae3227710c71ca693ee43c825f5d0d0fbd3c3773
tree-optimization/102798 - avoid copying PTA info to old SSA names

The vectorizer duplicates pointer-info to created pointer bases
but it has to avoid changing points-to info on existing SSA names
because there's now flow-sensitive info in there (pt->pt_null as
set from VRP).

2021-10-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/102798
* tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
Only copy points-to info to newly generated SSA names.

* gcc.dg/pr102798.c: New testcase.
gcc/testsuite/gcc.dg/pr102798.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c