[llvm-commits] [llvm] r125451 - in /llvm/trunk/lib/Transforms/InstCombine: InstCombine.h InstCombineCompares.cpp

Frits van Bommel fvbommel at gmail.com
Sun Feb 13 02:18:26 PST 2011


On Sun, Feb 13, 2011 at 8:43 AM, Chris Lattner <sabre at nondot.org> wrote:
> +/// FoldICmpShrCst - Handle "icmp(([al]shr X, cst1), cst2)".
> +Instruction *InstCombiner::FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr,
> +                                          ConstantInt *ShAmt) {
...
> +  if (Shr->hasOneUse() && cast<BinaryOperator>(Shr)->isExact())

Shr is already a BinaryOperator* here.




More information about the llvm-commits mailing list