[PowerPC] Use correct node to get a super register from a subreg
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 14 Apr 2021 00:40:36 +0000 (19:40 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 14 Apr 2021 00:52:21 +0000 (19:52 -0500)
commit0148bf53f0a0b533eb742a7c8005a40328c48d66
tree329de2afc618c90c2629c5bab06b322428b9e5ad
parent32e264921b7a683a0bf797c91c60344c8500aac2
[PowerPC] Use correct node to get a super register from a subreg

The VSX tablegen file has some rather eggregious uses of
COPY_TO_REGCLASS even in situations where it needs to use
SUBREG_TO_REG. While this produces correct code, it often doesn't
allow the register coalescer to coalesce copies and the resulting
code ends up being suboptimal. This patch just changes over
patterns that should use SUBREG_TO_REG.
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/fp-strict-round.ll
llvm/test/CodeGen/PowerPC/handle-f16-storage-type.ll
llvm/test/CodeGen/PowerPC/pre-inc-disable.ll
llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll