File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -19125,6 +19125,14 @@ bool SLPVectorizerPass::vectorizeStoreChains(BoUpSLP &R) {
19125
19125
if (V->getPointerOperandType()->getTypeID() >
19126
19126
V2->getPointerOperandType()->getTypeID())
19127
19127
return false;
19128
+ if (V->getValueOperand()->getType()->getScalarSizeInBits() <
19129
+ V2->getValueOperand()->getType()->getScalarSizeInBits()) {
19130
+ return true;
19131
+ }
19132
+ if (V->getValueOperand()->getType()->getScalarSizeInBits() >
19133
+ V2->getValueOperand()->getType()->getScalarSizeInBits()) {
19134
+ return false;
19135
+ }
19128
19136
// UndefValues are compatible with all other values.
19129
19137
if (isa<UndefValue>(V->getValueOperand()) ||
19130
19138
isa<UndefValue>(V2->getValueOperand()))
You can’t perform that action at this time.
0 commit comments