Change the cap on the amount of padding for each vtable to 32-byte (previously it...
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 20 Jul 2018 21:43:20 +0000 (21:43 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 20 Jul 2018 21:43:20 +0000 (21:43 +0000)
commitacf005676ebd747b762089ecfe5f9bd7f3a0bbd9
treed602b611089ced22f203c3b67b46b2485734b935
parent5ae765e68cf9b9e24fc1410c6c17daa54aaa029b
Change the cap on the amount of padding for each vtable to 32-byte (previously it was 128-byte)

We tested different cap values with a recent commit of Chromium. Our results show that the 32-byte cap yields the smallest binary and all the caps yield similar performance.
Based on the results, we propose to change the cap value to 32-byte.

Patch by Zhaomo Yang!

Differential Revision: https://reviews.llvm.org/D49405

llvm-svn: 337622
compiler-rt/test/cfi/create-derivers.test
llvm/lib/Transforms/IPO/LowerTypeTests.cpp