This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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] New predicate covering NOP_EXPR and CONVERT_EXPR


On Fri, 2 Dec 2005, Richard Guenther wrote:

> But this is (or should be) purely a frontend issue and has nothing to do
> with the middle-end treating NOP_EXPR and CONVERT_EXPR the same.  Same

It doesn't matter whether it's a front end, middle end or back end making 
a distinction, if you want to unify NOP_EXPR and CONVERT_EXPR into a 
single tree code you need to deal with all of them.

It may well be that more of the places in the middle end should be fixed 
just by handling both codes the same but more of the front-end places need 
extra conditions inserted.  Such middle-end changes should still have 
testcases added where possible for any optimization missed because of only 
one code being handled.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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