public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7420] arc: Fix for new ifcvt behavior [PR104154]
@ 2022-03-01 7:52 Robin Dapp
0 siblings, 0 replies; only message in thread
From: Robin Dapp @ 2022-03-01 7:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2240ebd8e46e098f972a662d0aad85348b304889
commit r12-7420-g2240ebd8e46e098f972a662d0aad85348b304889
Author: Robin Dapp <rdapp@linux.ibm.com>
Date: Mon Feb 7 08:39:41 2022 +0100
arc: Fix for new ifcvt behavior [PR104154]
ifcvt now passes a CC-mode "comparison" to backends. This patch
simply returns from gen_compare_reg () in that case since nothing
needs to be prepared anymore.
gcc/ChangeLog:
PR rtl-optimization/104154
* config/arc/arc.cc (gen_compare_reg): Return the CC-mode
comparison ifcvt passed us.
Diff:
---
gcc/config/arc/arc.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gcc/config/arc/arc.cc b/gcc/config/arc/arc.cc
index c27ba99eb60..fbc17e684a0 100644
--- a/gcc/config/arc/arc.cc
+++ b/gcc/config/arc/arc.cc
@@ -2256,6 +2256,12 @@ gen_compare_reg (rtx comparison, machine_mode omode)
cmode = GET_MODE (x);
if (cmode == VOIDmode)
cmode = GET_MODE (y);
+
+ /* If ifcvt passed us a MODE_CC comparison we can
+ just return it. It should be in the proper form already. */
+ if (GET_MODE_CLASS (cmode) == MODE_CC)
+ return comparison;
+
if (cmode != SImode && cmode != SFmode && cmode != DFmode)
return NULL_RTX;
if (cmode == SImode)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-01 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 7:52 [gcc r12-7420] arc: Fix for new ifcvt behavior [PR104154] Robin Dapp
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).