[llvm-commits] [patch] Add a pass for duplicating indirectbr at the IL level

Cameron Zwarich zwarich at apple.com
Sat Jul 30 21:41:13 PDT 2011


On Jul 30, 2011, at 9:38 PM, Rafael Ávila de Espíndola wrote:

>> I don't think we can remove the MI one, as there is tail duplication
>> that is only exposed by register allocation.
> 
> Yes, just the first of the MI ones. Fortunately the second pass is a lot
> simpler since we already have the real instructions and don't have to
> worry about PHIs.

So is the point of this to only duplicate indirect branches with no plan to add anything further in the future? If so, I agree with Evan that this should probably just go into CodeGenPrepare.

Cameron



More information about the llvm-commits mailing list