]> granicus.if.org Git - clang/commit
Generating assumption loads of vptr after ctor call (fixed)
authorPiotr Padlewski <prazek@google.com>
Tue, 18 Aug 2015 03:52:00 +0000 (03:52 +0000)
committerPiotr Padlewski <prazek@google.com>
Tue, 18 Aug 2015 03:52:00 +0000 (03:52 +0000)
commit552bb91a0ff386a0c1e46a798cb7ea6725320ddc
treeb0525371ee6af0a8afdbbb7c29ed112b7d9e8af2
parent9c728e4814e2f933f5241fec4ccfbfc64cb4f97b
Generating assumption loads of vptr after ctor call (fixed)

Generating call assume(icmp %vtable, %global_vtable) after constructor
call for devirtualization purposes.

For more info go to:
http://lists.llvm.org/pipermail/cfe-dev/2015-July/044227.html

Edit:
Fixed version because of PR24479.

http://reviews.llvm.org/D11859

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245264 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/CodeGen/CGCXXABI.h
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGClass.cpp
lib/CodeGen/CodeGenFunction.h
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGen/available-externally-hidden.cpp
test/CodeGenCXX/ctor-globalopt.cpp
test/CodeGenCXX/template-instantiation.cpp
test/CodeGenCXX/thunks.cpp
test/CodeGenCXX/virtual-base-ctor.cpp
test/CodeGenCXX/vtable-assume-load.cpp [new file with mode: 0644]
test/CodeGenCXX/vtable-available-externally.cpp