Re: [help]failed to generate PHI NODE in esra pass.

2012-11-05 Thread Handong Ye
On Mon, Nov 5, 2012 at 5:32 AM, Martin Jambor wrote: > Hi, > > On Sun, Nov 04, 2012 at 09:32:48PM -0800, Handong Ye wrote: >> On Sun, Nov 4, 2012 at 2:13 PM, Martin Jambor wrote: >> > On Sat, Nov 03, 2012 at 09:01:53AM +, Yangyueming wrote: >> >> Hi, all >> >> > > ... > >> >> >> >> But when I

Re: [help]failed to generate PHI NODE in esra pass.

2012-11-05 Thread Martin Jambor
Hi, On Sun, Nov 04, 2012 at 09:32:48PM -0800, Handong Ye wrote: > On Sun, Nov 4, 2012 at 2:13 PM, Martin Jambor wrote: > > On Sat, Nov 03, 2012 at 09:01:53AM +, Yangyueming wrote: > >> Hi, all > >> ... > >> > >> But when I do the test for a case with a little change, it is failed to > >> g

Re: [help]failed to generate PHI NODE in esra pass.

2012-11-04 Thread Handong Ye
On Sun, Nov 4, 2012 at 2:13 PM, Martin Jambor wrote: > Hi, > > On Sat, Nov 03, 2012 at 09:01:53AM +, Yangyueming wrote: >> Hi, all >> >> I do the research of min max instructions recently. I find it is related >> with phiopt. >> >> case1: >> int foo(short a ,short b) >> { >> if (a < b) >>

答复: [help]failed to generate PHI NODE in esra pass.

2012-11-04 Thread Yangyueming
I know it , thanks. -邮件原件- 发件人: Martin Jambor [mailto:mjam...@suse.cz] 发送时间: 2012年11月5日 6:14 收件人: Yangyueming 抄送: gcc@gcc.gnu.org 主题: Re: [help]failed to generate PHI NODE in esra pass. Hi, On Sat, Nov 03, 2012 at 09:01:53AM +, Yangyueming wrote: > Hi, all > > I do the re

Re: [help]failed to generate PHI NODE in esra pass.

2012-11-04 Thread Martin Jambor
Hi, On Sat, Nov 03, 2012 at 09:01:53AM +, Yangyueming wrote: > Hi, all > > I do the research of min max instructions recently. I find it is related with > phiopt. > > case1: > int foo(short a ,short b) > { >   if (a < b) >     a = b;   >   return a; > } > > It is successed in pass phiopt1(

[help]failed to generate PHI NODE in esra pass.

2012-11-03 Thread Yangyueming
Hi, all I do the research of min max instructions recently. I find it is related with phiopt. case1: int foo(short a ,short b) {   if (a < b)     a = b;     return a; } It is successed in pass phiopt1(-O2 with gcc 4.7.0). The MAX_EXPR can be generated. foo (short int a, short int b) {   int D