Omit unnnecessary branching in exec code