When removing unreachable code, remove unreachable info tables too
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 22 Nov 2013 10:12:55 +0000 (10:12 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 22 Nov 2013 10:13:24 +0000 (10:13 +0000)
commit3f0d4530a716b6db3c20b63825b56597e08b0d5e
tree8a7741033eaf934f3566be34b3e0f8ee6558a454
parentaebc7e1bfa7f026e6842500032d7cb6a386494b5
When removing unreachable code, remove unreachable info tables too

This bug only shows up when you are using proc-point splitting.
What was happening was:
  * We generate a proc-point for the stack check
  * And an info table
  * We eliminate the stack check because it's redundant
  * And the dangling info table caused a panic in
    CmmBuildInfoTables.bundle
compiler/cmm/CmmContFlowOpt.hs