Skip to content

Commit adf6b41

Browse files
arsenmjyli0116
authored andcommitted
LowerMatrixIntrinsics: Use use_empty instead of hasNUses(0) (llvm#137334)
1 parent 3d189bd commit adf6b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,11 +1885,11 @@ class LowerMatrixIntrinsics {
18851885
FusedInsts.insert(MatMul);
18861886
eraseFromParentAndRemoveFromShapeMap(Store);
18871887
eraseFromParentAndRemoveFromShapeMap(MatMul);
1888-
if (LoadOp0->hasNUses(0)) {
1888+
if (LoadOp0->use_empty()) {
18891889
FusedInsts.insert(LoadOp0);
18901890
eraseFromParentAndRemoveFromShapeMap(LoadOp0);
18911891
}
1892-
if (LoadOp1 != LoadOp0 && LoadOp1->hasNUses(0)) {
1892+
if (LoadOp1 != LoadOp0 && LoadOp1->use_empty()) {
18931893
FusedInsts.insert(LoadOp1);
18941894
eraseFromParentAndRemoveFromShapeMap(LoadOp1);
18951895
}

0 commit comments

Comments
 (0)