re PR rtl-optimization/18420 (ICE compiling mesa at -O2)
authorUlrich Weigand <uweigand@de.ibm.com>
Sun, 28 Nov 2004 13:02:52 +0000 (13:02 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Sun, 28 Nov 2004 13:02:52 +0000 (13:02 +0000)
PR rtl-optimization/18420
* simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.

From-SVN: r91419

gcc/ChangeLog
gcc/simplify-rtx.c

index bd956c4057e8d9ee5d09648be7f2d1c4750c3226..3a7580630010c17134c20671f90f8ffafaf63fa9 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR rtl-optimization/18420
+       * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
+
 2004-11-28  Steven Bosscher  <stevenb@suse.de>
            John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
index 52c0cffb87bb718ea18a944971044b6f1b9eede3..75bf42afbd4a1ca8dae317f4c7e78eb21ac91698 100644 (file)
@@ -3782,8 +3782,7 @@ simplify_gen_subreg (enum machine_mode outermode, rtx op,
   if (newx)
     return newx;
 
-  if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode
-      || (REG_P (op) && REGNO (op) < FIRST_PSEUDO_REGISTER))
+  if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode)
     return NULL_RTX;
 
   if (validate_subreg (outermode, innermode, op, byte))