Skip to content

Commit ede3a93

Browse files
committed
address comment
1 parent 86115e7 commit ede3a93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/AMDGPU/Transforms/MaskedloadToLoad.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ static FailureOr<Value> matchFullMask(OpBuilder &b, Value val) {
6969
auto broadcastOp = val.getDefiningOp<vector::BroadcastOp>();
7070
if (!broadcastOp)
7171
return failure();
72-
if (!isa<VectorType>(broadcastOp.getSourceType()))
73-
return broadcastOp.getSource();
74-
return failure();
72+
if (isa<VectorType>(broadcastOp.getSourceType()))
73+
return failure();
74+
return broadcastOp.getSource();
7575
}
7676

7777
static constexpr char kMaskedloadNeedsMask[] =

0 commit comments

Comments
 (0)