tree-optimization/93661 properly guard tree_to_poly_int64
authorRichard Biener <rguenther@suse.de>
Tue, 11 Feb 2020 09:52:31 +0000 (10:52 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 11 Feb 2020 09:53:31 +0000 (10:53 +0100)
commit9714f1a70d184fb6d282ac543c57734ed1fb39ac
treefb53fdfefed3ec4b2302ceb7b8754921ffa7f775
parentdfffecb802681fbdb56629d3bdd96491ac660be0
tree-optimization/93661 properly guard tree_to_poly_int64

2020-02-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/93661
PR tree-optimization/93662
* tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
tree_to_poly_int64.
* tree-sra.c (get_access_for_expr): Likewise.

* gcc.dg/pr93661.c: New testcase.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/tree-sra.c
gcc/tree-ssa-sccvn.c