[llvm] 52dd9de - [Scalar] Use SmallPtrSet::contains (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 23:50:28 PDT 2023
Author: Kazu Hirata
Date: 2023-03-31T23:50:17-07:00
New Revision: 52dd9deb156c1e0a70dedfc543343e35f42f5d9e
URL: https://github.com/llvm/llvm-project/commit/52dd9deb156c1e0a70dedfc543343e35f42f5d9e
DIFF: https://github.com/llvm/llvm-project/commit/52dd9deb156c1e0a70dedfc543343e35f42f5d9e.diff
LOG: [Scalar] Use SmallPtrSet::contains (NFC)
Added:
Modified:
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
index 4d0aac11d6198..1ef64eb427702 100644
--- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -985,7 +985,7 @@ class LowerMatrixIntrinsics {
// Third, try to lower any dot products
for (CallInst *CI : MaybeFusableInsts) {
- if (FusedInsts.find(CI) != FusedInsts.end()) // skip if already fused
+ if (FusedInsts.contains(CI)) // skip if already fused
continue;
lowerDotProduct(CI, FusedInsts, getFastMathFlags(CI));
}
More information about the llvm-commits
mailing list