Regression test for optimizing when it is building the SSA form.