search for: lcast

Displaying 3 results from an estimated 3 matches for "lcast".

Did you mean: last
2016 Jul 21
2
Remove zext-unfolding from InstCombine
...Inst>(SrcI->getOperand(0)); ICmpInst *RHS = dyn_cast<ICmpInst>(SrcI->getOperand(1)); if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse() && (transformZExtICmp(LHS, CI, false) || transformZExtICmp(RHS, CI, false))) { Value *LCast = Builder->CreateZExt(LHS, CI.getType(), LHS->getName()); Value *RCast = Builder->CreateZExt(RHS, CI.getType(), RHS->getName()); return BinaryOperator::Create(Instruction::Or, LCast, RCast); } } ``` The first two lines do the actual `zext(icmp)` optimization. The remaining li...
2016 Jul 27
2
Remove zext-unfolding from InstCombine
...and(0)); > ICmpInst *RHS = dyn_cast<ICmpInst>(SrcI->getOperand(1)); > if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse() && > (transformZExtICmp(LHS, CI, false) || > transformZExtICmp(RHS, CI, false))) { > Value *LCast = Builder->CreateZExt(LHS, CI.getType(), LHS->getName()); > Value *RCast = Builder->CreateZExt(RHS, CI.getType(), RHS->getName()); > return BinaryOperator::Create(Instruction::Or, LCast, RCast); > } > } > ``` > > The first two lines do the actual `zext(ic...
2016 Aug 04
2
Remove zext-unfolding from InstCombine
...Inst *RHS = dyn_cast<ICmpInst>(SrcI->getOperand(1)); > > if (LHS && RHS && LHS->hasOneUse() && RHS->hasOneUse() && > > (transformZExtICmp(LHS, CI, false) || > > transformZExtICmp(RHS, CI, false))) { > > Value *LCast = Builder->CreateZExt(LHS, CI.getType(), LHS->getName()); > > Value *RCast = Builder->CreateZExt(RHS, CI.getType(), RHS->getName()); > > return BinaryOperator::Create(Instruction::Or, LCast, RCast); > > } > > } > > ``` > > > > The firs...