8002160: Compilation issue with adlc using latest SunStudio compilers

Modify declaration of 'swap' overloading; dodge optimizer bug in c1_LIR.cpp

Reviewed-by: kvn, jrose
3 files changed