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 b5ae180 commit 4f00083Copy full SHA for 4f00083
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -910,7 +910,8 @@ class InterchangeableBinOp {
910
return trySet(MainOp_BIT);
911
return false;
912
}
913
- SeenBefore |= opcodeToMask(Opcode);
+ MaskType opcodeMask = opcodeToMask(Opcode);
914
+ SeenBefore |= opcodeMask;
915
ConstantInt *CI = isBinOpWithConstantInt(I).first;
916
if (CI) {
917
constexpr MaskType CanBeAll = Xor_BIT | Or_BIT | And_BIT | Sub_BIT |
@@ -937,7 +938,7 @@ class InterchangeableBinOp {
937
938
break;
939
940
- return trySet(opcodeToMask(Opcode));
941
+ return trySet(opcodeMask);
942
943
unsigned getOpcode() const {
944
if (Mask & MainOp_BIT)
0 commit comments