[PATCH] D61076: [NFC][PowerPC] Return early if the element type is not byte-sized in combineBVOfConsecutiveLoads
Zhang Kang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 01:13:14 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL359764: [NFC][PowerPC] Return early if the element type is not byte-sized in… (authored by ZhangKang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61076?vs=196473&id=197712#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61076/new/
https://reviews.llvm.org/D61076
Files:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Index: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -12201,6 +12201,11 @@
"Should be called with a BUILD_VECTOR node");
SDLoc dl(N);
+
+ // Return early for non byte-sized type, as they can't be consecutive.
+ if (!N->getValueType(0).getVectorElementType().isByteSized())
+ return SDValue();
+
bool InputsAreConsecutiveLoads = true;
bool InputsAreReverseConsecutive = true;
unsigned ElemSize = N->getValueType(0).getScalarType().getStoreSize();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61076.197712.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190502/a302d74a/attachment.bin>
More information about the llvm-commits
mailing list