Regression test for optimizing in the presence of
inlining a method that throws in an irreducible loop