We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7b296 commit 6693583Copy full SHA for 6693583
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1064,7 +1064,8 @@ class BinOpSameOpcodeHelper {
1064
const APInt &CIValue = CI->getValue();
1065
switch (Opcode) {
1066
case Instruction::Shl:
1067
- InterchangeableMask = CIValue.isZero() ? CanBeAll : MulBIT | ShlBIT;
+ if (CIValue.ult(CIValue.getBitWidth()))
1068
+ InterchangeableMask = CIValue.isZero() ? CanBeAll : MulBIT | ShlBIT;
1069
break;
1070
case Instruction::Mul:
1071
if (CIValue.isOne()) {
0 commit comments