Investors & landlords

Yes, but you have to be very diligent about being able to trace the money from the HELOC on your main home to the rental.  If you start using the HELOC for other things, it really muddies the waters and you endanger the entire deduction if you get audited.  The interest would be deductible on schedule E as a rental expense, not schedule A.