I wear compression socks when I fly or if I happen to have to stand or sit for long periods of time. I developed DVT on a flight between Los Angeles and Melbourne in 2009, and that's one of the many preventative suggestions.
I don't, however, wear them while cycling.