tree-optimization/94163 constrain alignment set by PRE
authorRichard Biener <rguenther@suse.de>
Fri, 13 Mar 2020 12:56:26 +0000 (13:56 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 13 Mar 2020 12:57:41 +0000 (13:57 +0100)
commit3604480a6fe493c51d6ebd53d9b1abeebbbb828f
tree79cd68fdbca34d71741f604e3e824a204401071a
parent98ff89d1ac5872f29020fe5b5edfdf5abce59014
tree-optimization/94163 constrain alignment set by PRE

This avoids HWI -> unsigned truncation to end up with zero alignment
which set_ptr_info_alignment ICEs on.

2020-03-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/94163
* tree-ssa-pre.c (create_expression_by_pieces): Check
whether alignment would be zero.
gcc/ChangeLog
gcc/tree-ssa-pre.c