forked from OSchip/llvm-project
[NFC][PowerPC] Return early if the element type is not byte-sized in combineBVOfConsecutiveLoads
Summary: Based on the Eli Friedman's comments in https://reviews.llvm.org/D60811 , we'd better return early if the element type is not byte-sized in `combineBVOfConsecutiveLoads`. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D61076 llvm-svn: 359764
This commit is contained in:
parent
c9f5220af9
commit
1a0d6d6899
|
@ -12201,6 +12201,11 @@ static SDValue combineBVOfConsecutiveLoads(SDNode *N, SelectionDAG &DAG) {
|
|||
"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();
|
||||
|
|
Loading…
Reference in New Issue