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]

Does someone object to this patch?


I have a patch that splits off some code from reload_cse_regs and makes
it more general so it can be used from other optimizers that need to
do some cse.
One optimization is lost in that patch; some other optimization
opportunities are gained.  Joern Rennecke who is reviewing the patch
suggested asking the gcc list whether anyone objects to removing the
optimization below (this patch obviously isn't meant to go in in this
form).  I haven't found a test case that makes the removed code actually
trigger, but maybe I'm testing the wrong code.
Comments, anyone?

Bernd

--- reload1.c~	Fri Jan 28 16:32:40 2000
+++ reload1.c	Fri Jan 28 16:32:43 2000
@@ -8393,9 +8393,6 @@
 
 	      if (dest_mode == GET_MODE (x))
 		tmp = XEXP (x, 0);
-	      else if (GET_MODE_BITSIZE (dest_mode)
-		       < GET_MODE_BITSIZE (GET_MODE (x)))
-		tmp = gen_lowpart_common (dest_mode, XEXP (x, 0));
 	      else
 		continue;
 


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