Get your taxes done using TurboTax

The improvements made to the rental should have been added as an asset on the Sch E/form 4562 period.  What happens to the loan that was used to pay for the improvements and when/how it is paid off is immaterial to the Sch E or the sale of the personal residence.  Once the HELOC has been paid off there will be no more mortgage interest to deduct on the Sch E ... it is just that simple.