CFI: add XFAIL test for a future optimization of two vcalls.
authorIvan Krasin <krasin@chromium.org>
Fri, 5 Aug 2016 01:45:54 +0000 (01:45 +0000)
committerIvan Krasin <krasin@chromium.org>
Fri, 5 Aug 2016 01:45:54 +0000 (01:45 +0000)
commita425623dd9907bf5433e2bf0f64b7e0dcb2b4a8a
tree9eb5154c8b2540d596a4eb1c5f77d272167b5e62
parenta2acc93140e45aa0f9948c4721d2cfe4197e9828
CFI: add XFAIL test for a future optimization of two vcalls.

Summary:
Often, a code will call multiple virtual methods of a given object.
If they go in a linear block, it should be possible to check vtable
before the first call, then store vtable pointer and reuse it for
the second vcall without any additional checks.

This is expected to have a positive performance impact on a hot
path in Blink, see https://crbug.com/634139.

Reviewers: kcc

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

llvm-svn: 277795
compiler-rt/test/cfi/two-vcalls.cpp [new file with mode: 0644]