Lines Matching refs:Val

246         // (Val ashr C1) & C2 -> (Val lshr C1) & C2
306 // isRunOfOnes - Returns true iff Val consists of one contiguous run of 1s with
310 static bool isRunOfOnes(ConstantInt *Val, uint32_t &MB, uint32_t &ME) {
311 const APInt& V = Val->getValue();
312 uint32_t BitWidth = Val->getType()->getBitWidth();
813 Value *Val = LHS->getOperand(0), *Val2 = RHS->getOperand(0);
823 Value *NewOr = Builder->CreateOr(Val, Val2);
829 Value *NewOr = Builder->CreateOr(Val, Val2);
845 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) {
848 } else if (match(Val, m_Trunc(m_Value(V))) &&
871 if (Val != Val2) return nullptr;
932 return Builder->CreateICmpULT(Val, LHSCst);
936 return Builder->CreateICmpSLT(Val, LHSCst);
949 Value *Add = Builder->CreateAdd(Val, AddCST, Val->getName()+".off");
951 Val->getName()+".cmp");
993 return Builder->CreateICmp(LHSCC, Val, RHSCst);
996 return InsertRangeTest(Val, AddOne(LHSCst), RHSCst, false, true);
1011 return Builder->CreateICmp(LHSCC, Val, RHSCst);
1014 return InsertRangeTest(Val, AddOne(LHSCst), RHSCst, true, true);
1612 Value *Val = LHS->getOperand(0), *Val2 = RHS->getOperand(0);
1618 B = Val;
1619 if (RHSCC == ICmpInst::ICMP_ULT && Val == RHS->getOperand(1))
1621 else if (RHSCC == ICmpInst::ICMP_UGT && Val == Val2)
1629 A = Val;
1630 else if (LHSCC == ICmpInst::ICMP_UGT && Val2 == Val)
1645 Value *NewOr = Builder->CreateOr(Val, Val2);
1654 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst))))
1656 return Builder->CreateICmpULE(Val, LHSCst);
1661 if (Val != Val2) return nullptr;
1719 Value *Add = Builder->CreateAdd(Val, AddCST, Val->getName()+".off");
1756 return InsertRangeTest(Val, LHSCst, AddOne(RHSCst), false, false);
1776 return InsertRangeTest(Val, LHSCst, AddOne(RHSCst), true, false);