summaryrefslogtreecommitdiff
path: root/gcc/loop-invariant.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-13 00:02:37 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-13 00:02:37 +0000
commita436996a623dc7e7e371ac14d754ad60b2be937f (patch)
tree00888aaee424a7db2f70d4ec4c16e9073c8a16c0 /gcc/loop-invariant.c
parentd9da8b4c02490945c709553504269540884b3e87 (diff)
downloadgcc-a436996a623dc7e7e371ac14d754ad60b2be937f.tar.gz
PR rtl-optimization/26225
* loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110898 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r--gcc/loop-invariant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c
index f7037474b3a..fd787a99346 100644
--- a/gcc/loop-invariant.c
+++ b/gcc/loop-invariant.c
@@ -583,6 +583,7 @@ static bool
may_assign_reg_p (rtx x)
{
return (can_copy_p (GET_MODE (x))
+ && GET_MODE (x) != BLKmode
&& (!REG_P (x)
|| !HARD_REGISTER_P (x)
|| REGNO_REG_CLASS (REGNO (x)) != NO_REGS));