Common Subexpression Eliminiation (CSE) was applied via loadCSE to remove redundant loads from code. However, this process failed in cases where there were redundant stores in between the redundant loads. In those cases, the redundant stores would be seen as having an intervening effect during the loadCSE step.
This patch fixes that by moving the load CSE behind the store CSE.
Fixes #62639.
loadB should not dominate loadA