[PATCH] D130487: [PowerPC] Fix vector_shuffle combines when inputs are scalar_to_vector of differing types.
Amy Kwan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 4 09:18:04 PST 2022
amyk added a comment.
@nemanjai Yeah, at the time of posting the patch, I did do little endian and big endian system tests as you mentioned. Since it's been awhile and I need update the patch, I'd like to retest these particular runs with this patch.
================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:14917-14918
+ // to the size of the scalar input to the SCALAR_TO_VECTOR later on.
+ int LHSScalarSize = 128;
+ int RHSScalarSize = 128;
----------------
nemanjai wrote:
> I don't follow why we need these here. They both seem to only be needed in the respective conditions (i.e. depending on whether the LHS/RHS are `scalar_to_vector` nodes). And within those conditional blocks, they are reset before they're used.
>
> So why do we need to define them here and initialize them to the width of a vector?
Ya, I think I had that in the beginning and meant to remove it prior to putting up the patch but didn't realize that it was still left in there. I don't believe I need it either, so I've removed it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130487/new/
https://reviews.llvm.org/D130487
More information about the llvm-commits
mailing list