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.
SmallPtrSet
std::set
loop-invariant-masks.mlir
1 parent d5736e4 commit cdc090aCopy full SHA for cdc090a
third_party/intel/lib/Dialect/Triton/Transforms/RemoveMasks.cpp
@@ -444,7 +444,7 @@ class LoopVersioner {
444
"Expecting a non-empty collection of masked operations");
445
446
// Collect the (loop invariant) mask conditions.
447
- std::set<Operation *> maskConds;
+ SmallPtrSet<Operation *, 8> maskConds;
448
for (Operation *maskedOp : collector.getMaskedOps()) {
449
if (auto loadOp = dyn_cast<tt::LoadOp>(maskedOp))
450
maskConds.insert(loadOp.getMask().getDefiningOp());
0 commit comments