[LLVMdev] Updating PHI for Instruction Domination?

Eric Christopher echristo at apple.com
Sun Feb 5 17:15:41 PST 2012


On Feb 2, 2012, at 5:13 PM, Ryan Taylor wrote:

> So my best bet is to try and work in reg2mem mode and then go back to mem2reg?
> 

I wouldn't. That sounds painful.

> I'm curious, it seems though when you split a block that the phis get updated, right?

Sure. There's code in splitBasicBlock to do this. It should just take a little bit of work to get what you want done.

-eric



More information about the llvm-dev mailing list