After you file

Once your return is accepted for processing a name change after that is immaterial ... however if you changed the name on the bank account the DD is going to may cause the deposit to be rejected and force a paper check.