[PATCH] D70301: [MachineInstr] Increase the size of a SmallVector
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 03:49:13 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc953e061b410: [CodeGen] Increase the size of a SmallVector (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70301/new/
https://reviews.llvm.org/D70301
Files:
llvm/lib/CodeGen/MachineInstr.cpp
Index: llvm/lib/CodeGen/MachineInstr.cpp
===================================================================
--- llvm/lib/CodeGen/MachineInstr.cpp
+++ llvm/lib/CodeGen/MachineInstr.cpp
@@ -1977,7 +1977,7 @@
unsigned
MachineInstrExpressionTrait::getHashValue(const MachineInstr* const &MI) {
// Build up a buffer of hash code components.
- SmallVector<size_t, 8> HashComponents;
+ SmallVector<size_t, 16> HashComponents;
HashComponents.reserve(MI->getNumOperands() + 1);
HashComponents.push_back(MI->getOpcode());
for (const MachineOperand &MO : MI->operands()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70301.229500.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191115/418991fd/attachment.bin>
More information about the llvm-commits
mailing list