public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1897] xtensa: Add RTX costs for if_then_else
@ 2022-07-30 4:14 Max Filippov
0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2022-07-30 4:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:48e9954d0865b5e5e31cb77ad05c45f7206eeb9f
commit r13-1897-g48e9954d0865b5e5e31cb77ad05c45f7206eeb9f
Author: Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Date: Sat Jul 30 04:31:44 2022 +0900
xtensa: Add RTX costs for if_then_else
It takes one machine instruction for both condtional branch and move.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (xtensa_rtx_costs):
Add new case for IF_THEN_ELSE.
Diff:
---
gcc/config/xtensa/xtensa.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index a851a7ae6b3..6ac879c38fb 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -4273,6 +4273,7 @@ xtensa_rtx_costs (rtx x, machine_mode mode, int outer_code,
case ZERO_EXTRACT:
case ZERO_EXTEND:
+ case IF_THEN_ELSE:
*total = COSTS_N_INSNS (1);
return true;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-30 4:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-30 4:14 [gcc r13-1897] xtensa: Add RTX costs for if_then_else Max Filippov
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).