* [pushed] aarch64: Fix cut-&-pasto in early RA pass [PR112948]
@ 2023-12-21 10:21 Richard Sandiford
0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2023-12-21 10:21 UTC (permalink / raw)
To: gcc-patches
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.
Tested on aarch64-linux-gnu & pushed.
Richard
gcc/
PR target/112948
* config/aarch64/aarch64-early-ra.cc (find_strided_accesses): Fix
cut-&-pasto.
---
gcc/config/aarch64/aarch64-early-ra.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/aarch64/aarch64-early-ra.cc b/gcc/config/aarch64/aarch64-early-ra.cc
index 484db94513d..24415bd829c 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;
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-21 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-21 10:21 [pushed] aarch64: Fix cut-&-pasto in early RA pass [PR112948] Richard Sandiford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).