mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 22:41:28 +08:00
tree-ssa-operands.c (finalize_ssa_uses): Properly put released operands on the free list.
2014-11-10 Richard Biener <rguenther@suse.de> * tree-ssa-operands.c (finalize_ssa_uses): Properly put released operands on the free list. From-SVN: r217291
This commit is contained in:
parent
a25454eae3
commit
6d64f20c8d
@ -1,3 +1,8 @@
|
||||
2014-11-10 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* tree-ssa-operands.c (finalize_ssa_uses): Properly put
|
||||
released operands on the free list.
|
||||
|
||||
2014-11-10 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* match.pd: Implement pattern from simplify_mult.
|
||||
|
@ -409,9 +409,10 @@ finalize_ssa_uses (struct function *fn, gimple stmt)
|
||||
/* If there is anything in the old list, free it. */
|
||||
if (old_ops)
|
||||
{
|
||||
for (ptr = old_ops; ptr; ptr = ptr->next)
|
||||
for (ptr = old_ops; ptr->next; ptr = ptr->next)
|
||||
delink_imm_use (USE_OP_PTR (ptr));
|
||||
old_ops->next = gimple_ssa_operands (fn)->free_uses;
|
||||
delink_imm_use (USE_OP_PTR (ptr));
|
||||
ptr->next = gimple_ssa_operands (fn)->free_uses;
|
||||
gimple_ssa_operands (fn)->free_uses = old_ops;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user