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 40ae296 commit 451dcfaCopy full SHA for 451dcfa
mlir/lib/Dialect/Vector/VectorOps.cpp
@@ -48,10 +48,10 @@ static MaskFormat get1DMaskFormat(Value mask) {
48
// when a mix is detected.
49
if (auto denseElts = c.value().dyn_cast<DenseIntElementsAttr>()) {
50
int64_t val = 0;
51
- for (llvm::APInt b : denseElts)
52
- if (b.getBoolValue() && val >= 0)
+ for (bool b : denseElts.getValues<bool>())
+ if (b && val >= 0)
53
val++;
54
- else if (!b.getBoolValue() && val <= 0)
+ else if (!b && val <= 0)
55
val--;
56
else
57
return MaskFormat::Unknown;
0 commit comments