Remove trivial allocs

This PR gets rid of the dead allocations that can sometimes be created during the specialize_branched_loops pass.