[Bug ipa/91089] IPA-cp does not setup proper cost model for switch default case in function versioning

2019-11-13 Thread fxue at os dot amperecomputing.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91089

Feng Xue  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Feng Xue  ---
Fixed and close it.

[Bug ipa/91089] IPA-cp does not setup proper cost model for switch default case in function versioning

2019-09-17 Thread fxue at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91089

--- Comment #3 from fxue at gcc dot gnu.org ---
Author: fxue
Date: Tue Sep 17 12:30:08 2019
New Revision: 275802

URL: https://gcc.gnu.org/viewcvs?rev=275802=gcc=rev
Log:
PR ipa/91089 - Setup predicate for switch default case in IPA

2019-09-17  Feng Xue  

PR ipa/91089
* doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
option.
* params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
* ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
for switch default case using range analysis information.

2019-09-17  Feng Xue  

PR ipa/91089
* gcc.dg/ipa/pr91089.c: New test.


Added:
trunk/gcc/testsuite/gcc.dg/ipa/pr91089.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/invoke.texi
trunk/gcc/ipa-fnsummary.c
trunk/gcc/params.def
trunk/gcc/testsuite/ChangeLog

[Bug ipa/91089] IPA-cp does not setup proper cost model for switch default case in function versioning

2019-08-15 Thread fxue at os dot amperecomputing.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91089

--- Comment #2 from Feng Xue  ---
I've already created a patch under review. Please give some comments. Here it
is: https://gcc.gnu.org/ml/gcc-patches/2019-07/msg00937.html

[Bug ipa/91089] IPA-cp does not setup proper cost model for switch default case in function versioning

2019-08-15 Thread tnfchris at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91089

Tamar Christina  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-08-15
 CC||tnfchris at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |tnfchris at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Tamar Christina  ---
I'll assign this to myself for now since the engineer investigating this
doesn't have a bugzilla account yet.