[PATCH] D42044: X86: Utilize ZeroableElements for canWidenShuffleElements
Zvi Rackover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 09:10:18 PST 2018
zvi added inline comments.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:14401
return DAG.getUNDEF(VT);
+ bool V2IsZero = !V2IsUndef && ISD::isBuildVectorAllZeros(V2.getNode());
----------------
RKSimon wrote:
> ISD::isBuildVectorAllZeros allows undef elements (as long as it isn't all undefs) - should we test for a splat build vector of zero and check that we have no undefs at all?
What would be the benefit of that? I mean, undefs can be zeroed if profitable.
Repository:
rL LLVM
https://reviews.llvm.org/D42044
More information about the llvm-commits
mailing list