[match-and-simplify] CSE with expression captures

Marc Glisse marc.glisse@inria.fr
Mon Sep 15 20:45:00 GMT 2014


On Tue, 16 Sep 2014, Prathamesh Kulkarni wrote:

> --- gcc/match-builtin.pd	(revision 215271)
> +++ gcc/match-builtin.pd	(working copy)
> @@ -44,8 +44,8 @@
>  	  /* ???  There is no way to CSE here.  We'd need to support
>  	     expression captures here, like with
>  	      (mult (realpart@1 @0) @1) */
> -	  (mult (realpart @0) (realpart @0))
> -	  (mult (imagpart @0) (imagpart @0)))))))
> +	  (mult (realpart@1 @0) @1) 
> +	  (mult (imagpart@2 @0) @2))))))

Maybe remove the comment above?

You seem to have trailing spaces on most of your new lines.

-- 
Marc Glisse



More information about the Gcc-patches mailing list