rs6000: Don't use operands[] for temporaries in define_expand
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 2 Oct 2020 00:06:56 +0000 (00:06 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Fri, 6 Nov 2020 23:59:15 +0000 (23:59 +0000)
commit1a0f964e4d100a39eb388ea68b71d870f5de2049
tree4b70eb07aa293f43b8a49fd93f06594a0ca4a836
parent4959bedcc8ca61161017b3a83edfe9e5a7b64cd9
rs6000: Don't use operands[] for temporaries in define_expand

In ac001f5ce604 Alan fixed my thinko using operands that do not refer
to anything mentioned in the RTL pattern.  Instead, it just uses fresh
new local rtxes for those.

This patch takes that a tiny bit further: it uses local rtx for all
temporaries used in the expanders.  As a bonus that simplifies the code
a tiny bit as well.

2020-11-06  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't abuse
operands[].
(@tablejump<mode>_nospec): Ditto.
gcc/config/rs6000/rs6000.md