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] Optimize empty class copies within a C++ return statement


On 03/10/2015 09:45 PM, Aldy Hernandez wrote:
+	    gimplify_expr (&TREE_OPERAND (*expr_p, 0), pre_p, post_p,
...
+	    *expr_p = TREE_OPERAND (*expr_p, 0);

Can't you use op0 here, since you're about to throw away the MODIFY_EXPR?

OK either way.

Jason


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