diff options
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index eb6719e..ce82780 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -582,8 +582,9 @@ find_exits (struct loop *loop, basic_block *body, static bool may_assign_reg_p (rtx x) { - return (can_copy_p (GET_MODE (x)) + return (GET_MODE (x) != VOIDmode && GET_MODE (x) != BLKmode + && can_copy_p (GET_MODE (x)) && (!REG_P (x) || !HARD_REGISTER_P (x) || REGNO_REG_CLASS (REGNO (x)) != NO_REGS)); |