diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-21 19:58:35 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-21 19:58:35 +0000 |
commit | 6bc21dca1e7ae2207a04646ca5df98e1356cf066 (patch) | |
tree | b9dc59c9fb87b1b87df0dcdce1c1c21748b9f2a7 /gcc/unroll.c | |
parent | 96ab3ac73cc62a514f0d62da2cc2b6f4fbc250cc (diff) | |
download | gcc-6bc21dca1e7ae2207a04646ca5df98e1356cf066.tar.gz |
* unroll.c (loop_find_equiv_value): If ret is modified between
insn and loop_start, ret might not be equivalent to reg.
* gcc.c-torture/execute/20000819-1.x: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35857 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 6976ebae6ed..c09f036eb5f 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -3540,6 +3540,11 @@ loop_find_equiv_value (loop, reg) ret = XEXP (note, 0); else ret = SET_SRC (set); + + /* We cannot do this if it changes between the + assignment and loop start though. */ + if (modified_between_p (ret, insn, loop_start)) + ret = reg; } break; } |