HL -> LL optimizer first revision