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, 18 Oct 2021 08:26:16 +0000 (10:26 +0200)
commita5b1b2a186d94b31a522395e9d02c9cec1b928cb
tree0d4f8d1f9b5befdb7f5a438b2ce80d03a7780678
parent724e27046bc3f1b24eb4e153f71da0ac1049127d
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