OSDN Git Service

[PowerPC] Do not RAUW combined nodes in VECTOR_SHUFFLE legalization
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 7 Jul 2020 03:06:53 +0000 (22:06 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 7 Jul 2020 03:09:28 +0000 (22:09 -0500)
commit1b1539712e1ee30c02ed20493682fc05d52391c0
tree0c146f8367dd078f1b4ce170604f11576bfe4d6d
parentfc67b25426c8767ab5941d376ab0f0628d62256e
[PowerPC] Do not RAUW combined nodes in VECTOR_SHUFFLE legalization

When legalizing shuffles, we make an attempt to combine it into
a PPC specific canonical form that avoids a need for a swap. If the
combine is successful, we RAUW the node and the custom legalization
replaces the now dead node instead of the one it should replace.
Remove that erroneous call to RAUW.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll