aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/flow.h
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-23 13:26:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:35 -0700
commitfe8df476cce241da882b6895b219e082ad3960f2 (patch)
treec1d2d6677ed26e25ad8dedfbcbbfa19d9b8d3d19 /flow.h
parent34038a899aa290c162229cab3289264961fd1772 (diff)
downloadsparse-dev-fe8df476cce241da882b6895b219e082ad3960f2.tar.gz
Add initial CSE pass
It ain't very smart yet, but give it time. In particular, right now it gathers information for the whole function, but it only does the actual replacement if the instructions are in the same basic block.
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 06f54fb4..5d169c32 100644
--- a/flow.h
+++ b/flow.h
@@ -5,4 +5,7 @@ extern void simplify_symbol_usage(struct entrypoint *ep);
extern void simplify_phi_nodes(struct entrypoint *ep);
extern void pack_basic_blocks(struct entrypoint *ep);
+extern void convert_load_insn(struct instruction *insn, pseudo_t src);
+extern void cleanup_and_cse(struct entrypoint *ep);
+
#endif