Remove code duplication.
Remove code duplication.

Use already defined compareOn function.

mattgodbolt/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,ibuclaw/gcc-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,dkm/gcc-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/gcc-explorer