In this case the difference is irrelevant. Correct would be:
I would have told you if I had known.
However, if you knew something in the past, then you also know it in the present. This brings about the mix up when people talk.
"I would have told you if I knew..." is simply a mix up in the speaker's mind.