https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121268
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|120763 |
--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Sounds good Vineet. My suspicion is this likely needs to be tackled in
match.pd.
There may be an opportunity to define some 3->2 splitters for rv64.
Essentially catching something like this:
Failed to match this instruction:
(set (reg:DI 142)
(ior:DI (sign_extend:DI (neg:SI (subreg:SI (reg:DI 146 [ x ]) 0)))
(reg:DI 146 [ x ])))
Normally combine would split at the argument to the sign_extend. But for rv64,
if the argument of the sign_extend is something implementable with the "w"
arithmetic forms, then it's better to split where the first insn includes that
sign extend. We have to explicitly tell combine where the good split point is.
It's a 3->2 split and doesn't seem to help this case, but likely would be
useful elsewhere.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120763
[Bug 120763] [meta-bug] Tracker for bugs to visit during weekly RISC-V meeting