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