Willkie Farr & Gallagher is advising Electronic Data Systems Corp. in its $13.9 billion merger with tech giant Hewlett-Packard.

The deal, announced Tuesday, will be HP’s biggest since its $20 billion acquisition of Compaq six years ago; it is expected to close by year’s end.