As the PR notes, there was a cut-&-pasto in find_strided_accesses.
I've not been able to find a testcase that shows the problem.
gcc/
PR target/112948
* config/aarch64/aarch64-early-ra.cc (find_strided_accesses): Fix
cut-&-pasto.
if (group1->strided_polarity)
group2->strided_polarity = group1->strided_polarity * pref;
- else if (group1->strided_polarity)
- group2->strided_polarity = group1->strided_polarity * pref;
+ else if (group2->strided_polarity)
+ group1->strided_polarity = group2->strided_polarity * pref;
else
{
group1->strided_polarity = 1;