Note: this is WIP, there is still one case where we exit early
unnecessarily.
By constructing the VT for a merged store upfront and using that to
check if merging is legal, we can exit early in some more cases.
This speeds up some variations of PR41263, where we have lots of i64
stores.