Evan Longoria's bases-empty homer with one out in the eighth inning Sunday broke a tie and helped the Giants salvage a split of the four-game series against the D-backs with a 3-2 victory at Chase Field.