Fix discarding of unreachable code in the register allocator (#9155)
authorSimon Marlow <marlowsd@gmail.com>
Fri, 6 Jun 2014 08:52:13 +0000 (09:52 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 6 Jun 2014 17:03:29 +0000 (18:03 +0100)
commite577a52363ee7ee8a07f1d863988332ae8fbf2e4
tree85ae41441df2d5b38676f95643acfd50b543ed25
parentb0215729214859051abf78f6cf5012805fe7d764
Fix discarding of unreachable code in the register allocator (#9155)

A previous fix to this was wrong: f5879acd018494b84233f26fba828ce376d0f81d
and left some unreachable code behind.  So rather than try to be clever and
do this at the same time as the strongly-connected-component analysis, I'm
doing a separate reachability pass first.
compiler/nativeGen/RegAlloc/Liveness.hs
compiler/utils/Digraph.lhs
testsuite/tests/codeGen/should_compile/T9155.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_compile/all.T