[project @ 2005-04-11 08:52:47 by simonmar]
authorsimonmar <unknown>
Mon, 11 Apr 2005 08:52:47 +0000 (08:52 +0000)
committersimonmar <unknown>
Mon, 11 Apr 2005 08:52:47 +0000 (08:52 +0000)
Add a Todo

ghc/compiler/nativeGen/AsmCodeGen.lhs

index 2675a26..cb2d4f7 100644 (file)
@@ -379,6 +379,9 @@ Ideas for other things we could do (ToDo):
 
   - shortcut jumps-to-jumps
   - eliminate dead code blocks
+  - simple CSE: if an expr is assigned to a temp, then replace later occs of
+    that expr with the temp, until the expr is no longer valid (can push through
+    temp assignments, and certain assigns to mem...)
 -}
 
 cmmToCmm :: CmmTop -> (CmmTop, [CLabel])