<div dir="ltr">Hi everyone,<div><br></div><div>I hope to implement a feature to transform an IR with "while" or "for" loops to a new IR with no loop. Instead, I just want to use if-else statements in the new IR to implement the original semantics.</div><div><br></div><div>I can easily write a transform pass to handle the 1-level loop case, but for nested loops it seems a little harder. </div><div><br></div><div>Can you show me some hints? Thank you very much!</div><div><br></div><div>Best regards,</div><div><br></div><div>Shen</div></div>