Revert "[inductor] Cleanup strip_last_size logic (#100305)"
This reverts commit de7793d577fec7af286ba63b309ccd3795a8c038.
Reverted https://github.com/pytorch/pytorch/pull/100305 on behalf of https://github.com/jansel due to causes IMA errors on huggingface ([comment](https://github.com/pytorch/pytorch/pull/100305#issuecomment-1532317310))