[llvm] 2b60bd5 - [Vectorize] Use Densemap::contains (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat May 6 00:03:09 PDT 2023
Author: Kazu Hirata
Date: 2023-05-06T00:02:54-07:00
New Revision: 2b60bd5141bb93ee153d896f291bef5b69513615
URL: https://github.com/llvm/llvm-project/commit/2b60bd5141bb93ee153d896f291bef5b69513615
DIFF: https://github.com/llvm/llvm-project/commit/2b60bd5141bb93ee153d896f291bef5b69513615.diff
LOG: [Vectorize] Use Densemap::contains (NFC)
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index eb6b9b1e2efb6..355efd361e3dd 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2488,8 +2488,7 @@ class VPlan {
}
void addSCEVExpansion(const SCEV *S, VPValue *V) {
- assert(SCEVToExpansion.find(S) == SCEVToExpansion.end() &&
- "SCEV already expanded");
+ assert(!SCEVToExpansion.contains(S) && "SCEV already expanded");
SCEVToExpansion[S] = V;
}
More information about the llvm-commits
mailing list