diff options
author | Edward Z. Yang <ezyang@mit.edu> | 2011-06-17 18:27:25 +0100 |
---|---|---|
committer | Edward Z. Yang <ezyang@mit.edu> | 2011-06-17 18:27:25 +0100 |
commit | b8e0ce7b417d48fa01a48aca5ff9852cffc989d7 (patch) | |
tree | b49cf139f1626370a43a08cb7a51ab73e85df6c1 /compiler/cmm/CmmSpillReload.hs | |
parent | 1687dab3968edf161e6eb759ff1041c7adb201f2 (diff) | |
download | haskell-b8e0ce7b417d48fa01a48aca5ff9852cffc989d7.tar.gz |
Port MachOp folding to new code generator.
* Rewrote cmmMachOpFold to cmmMachOpFoldM, which returns
Nothing if no folding took place.
* Wrote some generic mapping functions which take functions
of form 'a -> Maybe a' and are smart about sharing.
* Split up optimizations from PIC and PPC work in the native
codegen, so they'll be easier to turn off later
(they are not currently being turned off, however.)
* Whitespace fixes!
ToDo: Turn off MachOp folding when new codegenerator is being used.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Diffstat (limited to 'compiler/cmm/CmmSpillReload.hs')
0 files changed, 0 insertions, 0 deletions