My pass in LLVM generates an IR like this <br>  %5 = icmp eq i32 %4, 0<br>  %7 = or i1 %5, %5 <br> ;. . .<br>Since the 'or' instruction is actually not needed(dead code), I replaced all occurences of %7 with %5.<br>
Now, the 'or' instruction should get deleted. How can I call Dead Code Elimination pass of LLVM from my pass or is there any method to remove that 'or' instruction?<br><br>Thank you.<br>Adarsh Konchady<br>