This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Mar 2014 23:35:22 +0000
- Subject: [Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization
- Auto-submitted: auto-generated
- References: <bug-60315-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315
--- Comment #11 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Created attachment 32439
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32439&action=edit
Patch I am testing
this patch implements the trick of redirecting call edges to UNREACHABLE. It
solves the compile time issues quite well. I wonder why I did not get this idea
previously - basically it was always on the TODO list to remove edges
corresponding to provably unreachable code, but for that we need bit more
support because the known to be dead calls needs to be recorded for verifier
and inline-transform machinery.
Calls to UNREACHABLE does as well as special purpose markers without needs for
changess across the cgraph code.