<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">When I was looking into the code of <i class="">DemotePhiToStack</i>, I noticed that the invokeInst are not handled.</div><div class=""><br class=""></div><div class="">Can someone tell me why this is not the case, if there are tricky case which I have not thought?</div><div class=""><br class=""></div><div class="">I tried to create something and it seems to work but I want some advice.</div><div class=""><br class=""></div><div class="">Long story short, I create a new basic block between the invoke and the normalDest.</div><div class=""><br class=""></div><div class="">In this new basic block I save the result of the invoke and replace all of its uses, then, I update the incoming block into the phi node.</div><div class=""><br class=""></div><div class="">I run the test of CryptoPP and openssl and it seems to work.</div><div class="">
<br class=""></div><div class="">Greetings,</div><div class=""><br class=""></div><div class="">Johan</div></body></html>