diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2003-06-11 21:01:19 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2003-06-11 19:01:19 +0000 |
commit | 7e53cfb20d78c12a0efa8fce3e8a841b4ce8b808 (patch) | |
tree | abd921741b25e540be0dfdeaab60f482c1b3970b | |
parent | 763ebfe05aa884cb1c5d0f21d27aae9b7d85cd55 (diff) | |
download | gcc-7e53cfb20d78c12a0efa8fce3e8a841b4ce8b808.zip gcc-7e53cfb20d78c12a0efa8fce3e8a841b4ce8b808.tar.gz gcc-7e53cfb20d78c12a0efa8fce3e8a841b4ce8b808.tar.bz2 |
cfgloopanal.c (variable_initial_value): Update the set of altered registers correctly.
* cfgloopanal.c (variable_initial_value): Update the set of altered
registers correctly.
From-SVN: r67792
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cfgloopanal.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 20b1351..018bb83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> + + * cfgloopanal.c (variable_initial_value): Update the set of altered + registers correctly. + 2003-06-11 Roger Sayle <roger@eyesopen.com> Kaveh R. Ghazi <ghazi@caip.rutgers.edu> diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c index 88eaa2c..af7d812 100644 --- a/gcc/cfgloopanal.c +++ b/gcc/cfgloopanal.c @@ -359,12 +359,12 @@ variable_initial_value (insn, invariant_regs, var, set_insn) { for (; insn != bb->head; insn = PREV_INSN (insn)) { - if (modified_between_p (var, PREV_INSN (insn), NEXT_INSN (insn))) - break; if (INSN_P (insn)) note_stores (PATTERN (insn), (void (*) PARAMS ((rtx, rtx, void *))) unmark_altered, invariant_regs); + if (modified_between_p (var, PREV_INSN (insn), NEXT_INSN (insn))) + break; } if (insn != bb->head) |