[Bug tree-optimization/126721] UNIFORM_VECTOR_CST[a] -> uniform cst

"rguenth at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126721

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Confirmed.  For constants should be constant folding, for uniform
> non-constant values general folding.
> 
> There's also like nonzero bits and uniform-in-the-"range" values.  Aka even
> extracts from { 0, 1, 0, 1, 0, 1 ... } or [2,5] extract from { a, b, c, c,
> c, d, e }.

That said, the uniformity check could work on a subrange/bitmask, it needs
to iterate over all elements anyway.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.