For certain instructions, I am trying to do my own register assignments
before IRA runs. I call df_analyze to find all register references and
after my manipulations I call df_scan_blocks to reparse the insns.
A typical replacement that I want to handle is a register reference of
the form
(subreg:REGQ (reg/v: TI 195 [x2] 4)
If I replace the entire subreg expression by genRTX the compilation
works but I lose the reference to X2 (plus I have to update every
reference to reg expressions referencing reg 195).
If I call SET_REGNO on the inner expression, it automatically updates
all of the comparable expressions, and register 195 only appears as
original reg in any insn. The insn dumps look correct to me. But reload
will complain that register 195 didn't get a hard register assignment.
What do I need to do to make reload happy?
Thanks shmeel