This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Does someone object to this patch?
- To: gcc-patches at gcc dot gnu dot org
- Subject: Does someone object to this patch?
- From: Bernd Schmidt <bernds at balti dot cygnus dot co dot uk>
- Date: Fri, 28 Jan 2000 16:55:09 +0000 (GMT)
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;