[PATCH] D156260: [FunctionSpecialization] Use SmallVector::operator== to simplify some code. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 09:47:00 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe5df0481f009: [FunctionSpecialization] Use SmallVector::operator== to simplify some code. NFC (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156260/new/
https://reviews.llvm.org/D156260
Files:
llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
Index: llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
===================================================================
--- llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
+++ llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
@@ -82,12 +82,9 @@
SmallVector<ArgInfo, 4> Args;
bool operator==(const SpecSig &Other) const {
- if (Key != Other.Key || Args.size() != Other.Args.size())
+ if (Key != Other.Key)
return false;
- for (size_t I = 0; I < Args.size(); ++I)
- if (Args[I] != Other.Args[I])
- return false;
- return true;
+ return Args == Other.Args;
}
friend hash_code hash_value(const SpecSig &S) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156260.544409.patch
Type: text/x-patch
Size: 685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230726/70960300/attachment.bin>
More information about the llvm-commits
mailing list