[PATCH] D105790: [PowerPC] Fix the splat immediate in PPCMIPeephole depending on if we have an Altivec and VSX splat instruction.
Amy Kwan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 11 23:35:31 PDT 2021
amyk created this revision.
amyk added reviewers: PowerPC, nemanjai.
amyk added projects: LLVM, PowerPC.
Herald added subscribers: shchenz, kbarton, hiraditya.
amyk requested review of this revision.
An assertion of the following can occur because Altivec and VSX splats use a different operand number for the immediate:
int64_t llvm::MachineOperand::getImm() const: Assertion `isImm() && "Wrong MachineOperand accessor"' failed.
This patch updates `PPCMIPeephole.cpp` assign the correct splat immediate.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105790
Files:
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/aix-vsx-splatimm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105790.357841.patch
Type: text/x-patch
Size: 4887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210712/3d7bd0aa/attachment.bin>
More information about the llvm-commits
mailing list