-
Notifications
You must be signed in to change notification settings - Fork 14.3k
LowerMatrixIntrinsics: Use use_empty instead of hasNUses(0) #137334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LowerMatrixIntrinsics: Use use_empty instead of hasNUses(0) #137334
Conversation
@llvm/pr-subscribers-llvm-transforms Author: Matt Arsenault (arsenm) ChangesFull diff: https://github.com/llvm/llvm-project/pull/137334.diff 1 Files Affected:
diff --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
index 950344722b5cc..4ee34c3c88e73 100644
--- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -1885,11 +1885,11 @@ class LowerMatrixIntrinsics {
FusedInsts.insert(MatMul);
eraseFromParentAndRemoveFromShapeMap(Store);
eraseFromParentAndRemoveFromShapeMap(MatMul);
- if (LoadOp0->hasNUses(0)) {
+ if (LoadOp0->use_empty()) {
FusedInsts.insert(LoadOp0);
eraseFromParentAndRemoveFromShapeMap(LoadOp0);
}
- if (LoadOp1 != LoadOp0 && LoadOp1->hasNUses(0)) {
+ if (LoadOp1 != LoadOp0 && LoadOp1->use_empty()) {
FusedInsts.insert(LoadOp1);
eraseFromParentAndRemoveFromShapeMap(LoadOp1);
}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16653 Here is the relevant piece of the build log for the reference
|
No description provided.