optimize() call missing to remove extra BB right after another BB which transfers control