]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Fix cut-&-pasto in early RA pass [PR112948]
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 21 Dec 2023 10:20:19 +0000 (10:20 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 21 Dec 2023 10:20:19 +0000 (10:20 +0000)
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.

gcc/config/aarch64/aarch64-early-ra.cc

index 484db94513d3bca0315875f958c2136ed660b30a..24415bd829c2bcd565b8479076c95eb60aeac137 100644 (file)
@@ -2072,8 +2072,8 @@ early_ra::find_strided_accesses ()
 
          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;