Add dead code elimination in cmmMiniInline
authorSimon Marlow <simonmar@microsoft.com>
Thu, 20 Dec 2007 15:17:34 +0000 (15:17 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 20 Dec 2007 15:17:34 +0000 (15:17 +0000)
commitae72991e2f0343c075a30c0a5a7d4ac18e9ef500
tree0782cb708d3f9c44aae8e1d94fde0280f8c567a8
parent55030d7a875891de3ae2ccf4673711d1eae090ce
Add dead code elimination in cmmMiniInline
cmmMiniInline counts the uses of local variables, so it can easily
eliminate assigments to unused locals.  This almost never gets
triggered, as we don't generate any dead assignments, but it will be
needed by a forthcoming cleanup in CgUtils.emitSwitch.
compiler/cmm/CmmOpt.hs