(cse_around_loop): Don't invalidate SUBREG unless it's a SUBREG of a

REG.

From-SVN: r8085
This commit is contained in:
Richard Kenner 1994-09-15 13:21:49 -04:00
parent cf2f711352
commit f1636e8ad8
1 changed files with 2 additions and 1 deletions

View File

@ -7590,7 +7590,8 @@ cse_around_loop (loop_start)
for (p = last_jump_equiv_class->first_same_value; p;
p = p->next_same_value)
if (GET_CODE (p->exp) == MEM || GET_CODE (p->exp) == REG
|| GET_CODE (p->exp) == SUBREG)
|| (GET_CODE (p->exp) == SUBREG
&& GET_CODE (SUBREG_REG (p->exp)) == REG))
invalidate (p->exp);
else if (GET_CODE (p->exp) == STRICT_LOW_PART
|| GET_CODE (p->exp) == ZERO_EXTRACT)