]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Fold all the cond-move variants together
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:27 +0000 (01:18 +0000)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 22 Nov 2023 05:05:14 +0000 (22:05 -0700)
commit136b1f355092bff70396ecfe07cdd1386d2fd800
tree3fc00bdf8f55d20900577b6081ff340d30da81e8
parent1990eb1d2513349c153b38c069f678099e76185b
RISC-V: Fold all the cond-move variants together

Code in `riscv_expand_conditional_move' for Ventana and Zicond targets
seems like bolted on as an afterthought rather than properly merged so
as to handle all the cases together.

Fold the existing code pieces together then (observing that for short
forward branch targets no integer comparisons need to be canonicalized),
letting T-Head targets produce branchless sequences for all the integer
comparisons rather than for equality ones only, and preparing for the
handling of floating-point comparisons here across all conditional-move
targets.

gcc/
* config/riscv/riscv.cc (riscv_expand_conditional_move): Unify
conditional-move handling across all the relevant targets.

(cherry picked from commit 413ebfd660793ce16f0e6173b38ad91cd2f0cf64)
gcc/config/riscv/riscv.cc
This page took 0.056168 seconds and 5 git commands to generate.