The key point from the T&Cs for Last Minute Upgrades:
- Passengers accumulate mileage, including Air Canada status mileage, as per original fare option they purchased.
https://www.aircanada.com/ca/en/aco/...-purchase.html
The only way your entitled to the additional mileage is if you paid a change fee + fare difference to change your fare class.