Effect of contributing to qualified retirement accounts with HELOC funds

Not exactly the same, but in recent years, I’ve often “borrowed” from my savings account to make an IRA contribution, so that I can get the tax deduction. I pay the savings account back from later paychecks.

You just need to crunch the numbers. Good luck.