diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-12-21 10:20:19 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-12-21 10:20:19 +0000 |
commit | 81dfa84e35659bc8adff945e61b02bc76c4c7f1e (patch) | |
tree | 1d7af08f973fcd72ba1c173a01166a02efcf9f52 | |
parent | b9dc16cbe2222bf1006a6266ba89da460165f3cb (diff) | |
download | gcc-81dfa84e35659bc8adff945e61b02bc76c4c7f1e.zip gcc-81dfa84e35659bc8adff945e61b02bc76c4c7f1e.tar.gz gcc-81dfa84e35659bc8adff945e61b02bc76c4c7f1e.tar.bz2 |
aarch64: Fix cut-&-pasto in early RA pass [PR112948]
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.
-rw-r--r-- | gcc/config/aarch64/aarch64-early-ra.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/aarch64/aarch64-early-ra.cc b/gcc/config/aarch64/aarch64-early-ra.cc index 484db94..24415bd 100644 --- a/gcc/config/aarch64/aarch64-early-ra.cc +++ b/gcc/config/aarch64/aarch64-early-ra.cc @@ -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; |