re PR tree-optimization/56718 (Early inlining prevents type based devirtualization)
commite248d83f4ba23139d1c24aac2d9b2caf9c67c206
authorMartin Jambor <mjambor@suse.cz>
Fri, 19 Apr 2013 12:00:27 +0000 (19 14:00 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 19 Apr 2013 12:00:27 +0000 (19 14:00 +0200)
tree48a1cde54c03eeceeb5712488b900a74b29947ac
parent4891e8f8cdeb34ad392a8cf374ce9b8ee54a177f
re PR tree-optimization/56718 (Early inlining prevents type based devirtualization)

2013-04-19  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/56718
* ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
* ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
and made public.  Adjusted all callers.
(ipa_intraprocedural_devirtualization): New function.
* ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
(ipa_intraprocedural_devirtualization): Likewise.
* Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.

testsuite/
* g++.dg/ipa/imm-devirt-1.C: New test.
* g++.dg/ipa/imm-devirt-2.C: Likewise.

From-SVN: r198088
gcc/ChangeLog
gcc/Makefile.in
gcc/ipa-cp.c
gcc/ipa-prop.c
gcc/ipa-prop.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/imm-devirt-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/imm-devirt-2.C [new file with mode: 0644]
gcc/tree-ssa-pre.c