middle-end/98807 - more vector_element_bits fixes
authorRichard Biener <rguenther@suse.de>
Mon, 25 Jan 2021 10:22:28 +0000 (11:22 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 25 Jan 2021 12:18:13 +0000 (13:18 +0100)
commitdefc40db9e09ecceb2d71727031fe9579bce1b11
treea7a28892322f7e32224d0ab1c09725d564df942a
parent0433fc2d7d44eafd61017cd0b6c4cab1fcb16990
middle-end/98807 - more vector_element_bits fixes

This simplifies vector_element_bits further, avoiding any mode
dependence and instead relying on boolean vector construction
to populate element precision accordingly.

2021-01-25  Richard Biener  <rguenther@suse.de>

PR middle-end/98807
* tree.c (vector_element_bits): Always use precision of
the element type for boolean vectors.

* gcc.dg/pr98807.c: New testcase.
gcc/testsuite/gcc.dg/pr98807.c [new file with mode: 0644]
gcc/tree.c