diff options
author | Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp> | 2022-07-30 04:31:44 +0900 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-07-29 21:14:18 -0700 |
commit | 48e9954d0865b5e5e31cb77ad05c45f7206eeb9f (patch) | |
tree | 1cd7293dfd2f233573d0d7716488b14a5e1aa45d /gcc/config/xtensa/xtensa.cc | |
parent | b2bf04739fb4170d24a3a83327fdf2b5d1a88520 (diff) | |
download | gcc-48e9954d0865b5e5e31cb77ad05c45f7206eeb9f.zip gcc-48e9954d0865b5e5e31cb77ad05c45f7206eeb9f.tar.gz gcc-48e9954d0865b5e5e31cb77ad05c45f7206eeb9f.tar.bz2 |
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.
Diffstat (limited to 'gcc/config/xtensa/xtensa.cc')
-rw-r--r-- | gcc/config/xtensa/xtensa.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index a851a7a..6ac879c 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; |