added logic to remove special case of IR inserting a bogus instruction that was throwing off iteration effect