[llvm-commits] [llvm] r51922 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

Eric Christopher echristo at apple.com
Tue Jun 3 17:40:41 PDT 2008


>
> We need to subtract one from this index because live ranges are open  
> at the end.
>
> -        unsigned idx = LI.getMBBEndIdx(P->getOperand(i).getMBB());
> +        unsigned idx = LI.getMBBEndIdx(P->getOperand(i).getMBB()) -  
> 1;
>         VNInfo* VN = I.getLiveRangeContaining(idx)->valno;

This would make a great comment right here :)

-eric



More information about the llvm-commits mailing list