aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl-ssa/changes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtl-ssa/changes.cc')
-rw-r--r--gcc/rtl-ssa/changes.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/rtl-ssa/changes.cc b/gcc/rtl-ssa/changes.cc
index 00e6c31..f2fc982 100644
--- a/gcc/rtl-ssa/changes.cc
+++ b/gcc/rtl-ssa/changes.cc
@@ -713,7 +713,11 @@ function_info::apply_changes_to_insn (insn_change &change,
// Add all uses, now that their position is final.
for (use_info *use : change.new_uses)
- add_use (use);
+ {
+ if (use->def ())
+ commit_make_use_available (use);
+ add_use (use);
+ }
// Copy the uses and definitions.
unsigned int num_defs = change.new_defs.size ();