Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: src/IceRegAlloc.h

Issue 1776343004: Subzero: Tweaks to reduce malloc use. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceBrowserCompileServer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRegAlloc.h
diff --git a/src/IceRegAlloc.h b/src/IceRegAlloc.h
index da0642bbd30c37ae11db51bc8daecf051cea5bbe..fb1a0d86560ab858920049679573a89b3e57a19b 100644
--- a/src/IceRegAlloc.h
+++ b/src/IceRegAlloc.h
@@ -43,8 +43,10 @@ public:
void dump(Cfg *Func) const;
// TODO(stichnot): Statically choose the size based on the target being
- // compiled.
- static constexpr size_t REGS_SIZE = 32;
+ // compiled. For now, choose a value large enough to fit into the
+ // SmallVector's fixed portion, which is 32 for x86-32, 84 for x86-64, and 102
+ // for ARM32.
+ static constexpr size_t REGS_SIZE = 128;
private:
using OrderedRanges = CfgVector<Variable *>;
« no previous file with comments | « src/IceBrowserCompileServer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698