[llvm-dev] DemotePHIToStack + invoke

Wehrli Johan via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 29 02:36:45 PST 2016


Hi,

When I was looking into the code of DemotePhiToStack, I noticed that the invokeInst are not handled.

Can someone tell me why this is not the case, if there are tricky case which I have not thought?

I tried to create something and it seems to work but I want some advice.

Long story short, I create a new basic block between the invoke and the normalDest.

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.

I run the test of CryptoPP and openssl and it seems to work.

Greetings,

Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160129/45ec0c07/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160129/45ec0c07/attachment.sig>


More information about the llvm-dev mailing list