cmm common block not eliminated
|Reported by:||wojteknar||Owned by:|
|Type of failure:||Runtime performance bug||Test Case:|
|Related Tickets:||Differential Rev(s):|
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 (11)
Changed 21 months ago by wojteknar
comment:3 Changed 21 months ago by jstolarek
- Cc simonmar added
comment:9 Changed 5 months ago by thomie
- Type of failure changed from Other to Runtime performance bug