This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][RFC] Fix PR61473, inline small memcpy/memmove during tree opts


On Thu, Jul 10, 2014 at 04:30:13PM +0200, Richard Biener wrote:
> Compromise "hack" below.  It simply avoids the transform for
> sources that c_strlen can compute a length of.  That "fixes" all
> strlenopt testcase apart from strlenopt-8.c which does
> memcpy (, flag ? "a" : "b"); which then still folds
> during gimplification.  I have XFAILed that.
> 
> I've tried to comb my way through strlenopt but failed to quickly
> add support for generic stores (it has very rough support for
> char stores, see also PR61773).
> 
> Does the below look ok?

I can look at the tree-ssa-strlen.c stuff and removing the !c_strlen
hack incrementally.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]