On 10/28/26 9:37 AM, Rogge, Loeka wrote:
Hi Jeff,
Could you review the changes in jump.cc?
The Xtensa part is already OK'd.
Loeka
On 10/27/26 7:39 AM, [email protected] wrote:
From: Loeka Rogge<[email protected]>
This was already added in the xtensa backend. Without the check,
reg_renumber[REGNO (x)] >= 0 could dereference null if true_regnum
is called before reload.
Moved here so it can be reused in the RISC-V backend in the fusion
matchers in riscv-fusion.cc
Bootstrapped and regtested with all checking enabled on x86.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (xt_true_regnum): Removed.
(xtensa_valid_move): Use true_regnum instead of xt version.
(print_operand): Likewise.
(xtensa_secondary_reload): Likewise.
* jump.cc (true_regnum): Replaced by xt version.
You're not supposed to be calling true_regnum until after reload/lra has
completed.
Jeff