If you have a boarding pass you don't need to pass through immigration, and that's the advice on the KLIA website:
https://airports.malaysiaairports.co...light-transfer
SIN will be much of muchness if on AirAsia or Jetstar since since departing and arriving pax are kept seperate in T4 (unlike T1/T2/T3).