Make WholeProgramDevirt understand ConstStruct vtables.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 9 Dec 2016 00:33:27 +0000 (00:33 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 9 Dec 2016 00:33:27 +0000 (00:33 +0000)
commit7a1e5bbe4e63c41dffa6d19668ebe72cda3f9803
tree2ce564b2df30fa39610929bf6e5bdedbfc0bf649
parent313b326bb6a5bc240f2cfeb9f403fe9f5d18bc4e
Make WholeProgramDevirt understand ConstStruct vtables.

Based on a patch by LemonBoy!

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

llvm-svn: 289162
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/test/Transforms/WholeProgramDevirt/non-aggregate-vtable.ll [moved from llvm/test/Transforms/WholeProgramDevirt/non-array-vtable.ll with 100% similarity]
llvm/test/Transforms/WholeProgramDevirt/struct-vtable.ll [new file with mode: 0644]