Re: [PATCH] Setup predicate for switch default case in IPA (PR ipa/91089)

2019-08-30 Thread Feng Xue OS
That's good. Thanks for your comments. Feng From: Martin Jambor Sent: Thursday, August 29, 2019 11:00 PM To: Feng Xue OS; gcc-patches@gcc.gnu.org; Jan Hubicka Subject: Re: [PATCH] Setup predicate for switch default case in IPA (PR ipa/91089) Hi

Re: [PATCH] Setup predicate for switch default case in IPA (PR ipa/91089)

2019-08-29 Thread Martin Jambor
Hi, On Fri, Jul 12 2019, Feng Xue OS wrote: > IPA does not construct executability predicate for default case of switch > statement. > So execution cost of default case is not properly evaluated in IPA-cp, this > might > prevent function clone for function containing switch statement, if certain

[PATCH] Setup predicate for switch default case in IPA (PR ipa/91089)

2019-07-12 Thread Feng Xue OS
IPA does not construct executability predicate for default case of switch statement. So execution cost of default case is not properly evaluated in IPA-cp, this might prevent function clone for function containing switch statement, if certain non-default case is proved to be executed after const