This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v3] Missed function specialization + partial devirtualization
- From: Martin Liška <mliska at suse dot cz>
- To: luoxhu <luoxhu at linux dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Cc: hubicka at ucw dot cz, segher at kernel dot crashing dot org, wschmidt at linux dot ibm dot com
- Date: Tue, 13 Aug 2019 15:16:12 +0200
- Subject: Re: [PATCH v3] Missed function specialization + partial devirtualization
- References: <20190712085102.18858-1-luoxhu@linux.ibm.com> <942697f0-8125-49f3-44f0-15b8908d3cf6@suse.cz> <42e71441-3a7e-13aa-7d57-f9880591fc28@linux.ibm.com> <35cc389f-f0c2-6c0a-7a54-30be7d9b3804@suse.cz>
And I would also suggest to come up with parameter that will
drive minimum probability, maximum number of promotions and
maybe minimal number of edge executions to consider a speculation.
Clang provides all these:
https://github.com/microsoft/llvm-1/blob/master/lib/Analysis/IndirectCallPromotionAnalysis.cpp#L37
Martin