optimize legalization of shl 32