From: simonmar Date: Mon, 11 Apr 2005 08:52:47 +0000 (+0000) Subject: [project @ 2005-04-11 08:52:47 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~766 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=28b505a696acf289ff0986d0335ea0923a1de6d2;p=ghc-hetmet.git [project @ 2005-04-11 08:52:47 by simonmar] Add a Todo --- diff --git a/ghc/compiler/nativeGen/AsmCodeGen.lhs b/ghc/compiler/nativeGen/AsmCodeGen.lhs index 2675a26..cb2d4f7 100644 --- a/ghc/compiler/nativeGen/AsmCodeGen.lhs +++ b/ghc/compiler/nativeGen/AsmCodeGen.lhs @@ -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])