cmm common block not eliminated
|Reported by:||wojteknar||Owned by:|
|Type of failure:||Other||Test Case:|
|Related Tickets:||Differential Revisions:|
For the toTuple# function (in the attached file) GHC generates a cmm switch statement, with all the alternatives, unsurprisingly, the same. Yet, cmm common block elimination does not kick in.
In this particular example, the whole case statement could be annihilated, because all alternatives lead to the same code.
BTW, this is how they match in France.
type alt = A of int | B of int | C of int | D of int let g x = match x with A v | B v | C v | D v -> v
Change History (9)
Changed 12 months ago by wojteknar
comment:3 Changed 12 months ago by jstolarek
- Cc simonmar added