aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/flow.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-27 23:06:59 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:07 -0700
commit63949df837a8e55f573e70cd995e0163df9d63d1 (patch)
treea131650da260ff43fc3f39d10224774999084d03 /flow.h
parent073b3c2cca2e596cf230dcd7646050747f7d00d0 (diff)
downloadsparse-63949df837a8e55f573e70cd995e0163df9d63d1.tar.gz
Expose the "trivial common parent" logic that we use for phi
node re-writing. We'll want to do it for CSE too.
Diffstat (limited to 'flow.h')
-rw-r--r--flow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/flow.h b/flow.h
index 89deee54..20f9fc82 100644
--- a/flow.h
+++ b/flow.h
@@ -25,4 +25,7 @@ int dominates(pseudo_t pseudo, struct instruction *insn, struct instruction *dom
extern void track_pseudo_usage(struct entrypoint *ep);
+extern struct basic_block *trivial_common_parent(struct basic_block *, pseudo_t,
+ struct basic_block *, pseudo_t);
+
#endif