diff options
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index ba1f2888b00..64c16a98423 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -206,7 +206,7 @@ check_maybe_invariant (rtx x) /* Just handle the most trivial case where we load from an unchanging location (most importantly, pic tables). */ - if (MEM_READONLY_P (x)) + if (MEM_READONLY_P (x) && !MEM_VOLATILE_P (x)) break; return false; |