Reapply r162160 with a fix: Optimize Arith->Trunc->SETCC sequence to allow better...