<div dir="ltr"><div><div>Hi, Everyone!<br><br></div>I'm working on a framework that applies IR level optimizations to a given code. So,<br></div><div>it was working properly with LLVM 3.6, but then, I decided to port it to the version<br></div><div>3.7. For that, I add the Passes in the legacy::PassManager with PassInfo's, and then,<br></div><div>run it.<br></div><div><br></div><div>Of course, it raised some problems, which I managed to fix, until sometime ago. I <br></div><div>noticed that when it was trying to compile the code with a given set of optimizations,<br></div><div>it raised this error (any set of optimizations raised this error):<br><br>Pass 'MachineDominator Tree Construction' is not initialized.<br></div><div>Verify if there is a pass dependency cycle.<br></div><div>Required Passes:<br></div><div>(There was no required Passes specified after that)<br><br></div><div>So, I tried initializing it before applying the optimizations with: <br>initializeMachineDominatorTreePass(*Registry);<br><br></div><div>But, unfortunately, nothing changed. So, I'm lost.<br></div><div>Any Ideas??<br><br></div><div>-Marcos<br> </div></div>