I remember reading in The Cambridge History of Greek and Roman Warfare Vol II that the legionaries in the later empire were primarily armed with a thrusting spear of about 2.0-2.5 meter long, while spatha as secondary weapon, so I guess legions of late empire might look like an improved phalanx, hoplite type, not Macedonian type, of course. Correct me if I'm wrong.