The tune has the same rhythm and overall melodic contour as "The Boyne Water" - if you were trying to do a major-key version of TBW you'd come up with something very much like TGILBM. (TBW dates from near the time of the battle itself).
Are there early texts known to have been sung to both?