Skip to content

Commit 85e7ad2

Browse files
maksfbmemfrob
authored andcommitted
[BOLT] Use 32 as the default max bytes for function alignment
Summary: Several benchmarks (hhvm, compilers) show that 32 provides a good balance between I-Cache performance and iTLB misses. (cherry picked from FBD6026476)
1 parent 52cc87d commit 85e7ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/RewriteInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ AlignFunctions("align-functions",
101101
static cl::opt<unsigned>
102102
AlignFunctionsMaxBytes("align-functions-max-bytes",
103103
cl::desc("maximum number of bytes to use to align functions"),
104-
cl::init(7),
104+
cl::init(32),
105105
cl::ZeroOrMore,
106106
cl::cat(BoltOptCategory));
107107

0 commit comments

Comments
 (0)