Simplify some ir