[GHC] #13289: Terrible loss of optimisation in presence of ticks