aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/flow.c
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-24 18:29:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:46 -0700
commitb200a9a69e704c24761d0c8b06198e33dbf8ab6a (patch)
treeabc03f14331513866abaedaf765c98db5b05d93e /flow.c
parent6e82297e7242122397b6aa37a3c4580f45fa416d (diff)
downloadsparse-dev-b200a9a69e704c24761d0c8b06198e33dbf8ab6a.tar.gz
Oops. Forgot to add usage of a dominator list pseudo.
This made the phi-source CSE generate garbage, since the information wasn't updated in the phi list of the user. Move use_pseudo() to header file, since flow wants to use it too now.
Diffstat (limited to 'flow.c')
-rw-r--r--flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flow.c b/flow.c
index 3090d746..c0a94bc5 100644
--- a/flow.c
+++ b/flow.c
@@ -254,7 +254,7 @@ found_dominator:
br = delete_last_instruction(&parent->insns);
phi = alloc_phi(parent, one->target);
add_instruction(&parent->insns, br);
- add_pseudo(dominators, phi);
+ use_pseudo(phi, add_pseudo(dominators, phi));
} END_FOR_EACH_PTR(parent);
return 1;
}