On 12/10/25 1:34 PM, Alexandre Oliva wrote:

Once fre5 resolves conditional of the guard block for the vectorized
loop, cfgcleanup removes the edge that bypasses it, adjusting the
other edge probability, but not the edge's dest's count.  The blocks
get combined, and their counts are merged, but nothing adjusts the
counts of the block that lost an incoming edge.

The incoming counts remain inconsistent from that point on, and get
reported as "Invalid sum of incoming counts" in the tree dump where
vect-121.c checks for the absence of this error.

That was added in response to a fix for a vectorizer profile count
management problem.  This is a different profile count management
problem, so it makes sense to silence this failure marking it as
expected.

Regstrapped on x86_64-linux-gnu, also tested on i686-linux-gnu.
Andrew, from the PR, I get the notion that an immediate fix is not
forthcoming, so I'm proposing this.  Ok to install?

Testsuite maintainers, I forgot to explicitly copy you on another
just-posted patch:
https://gcc.gnu.org/pipermail/gcc-patches/2025-December/703362.html


for  gcc/testsuite/ChangeLog

        * gcc.dg/vect/vect-121.c: XFAIL on ia32.
OK
jeff

Reply via email to