Home
last modified time | relevance | path

Searched refs:CmpC (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4329 auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros()); in foldICmpUsingKnownBits() local
4331 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
4335 auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros()); in foldICmpUsingKnownBits() local
4338 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
4363 const APInt *CmpC; in foldICmpUsingKnownBits() local
4364 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits()
4366 if (*CmpC == Op0Min + 1) in foldICmpUsingKnownBits()
4368 ConstantInt::get(Op1->getType(), *CmpC - 1)); in foldICmpUsingKnownBits()
4371 if (Op0Known.countMinTrailingZeros() >= CmpC->ceilLogBase2()) in foldICmpUsingKnownBits()
4385 const APInt *CmpC; in foldICmpUsingKnownBits() local
[all …]
DInstCombineSelect.cpp705 const APInt *CmpC; in adjustMinMax() local
706 if (!Cmp.hasOneUse() || !match(CmpRHS, m_APInt(CmpC))) in adjustMinMax()
718 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC + 1); in adjustMinMax()
720 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC - 1); in adjustMinMax()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1287 auto *CmpC = dyn_cast<ConstantInt>(User->getOperand(1)); in sinkAndCmp0Expression() local
1288 if (!CmpC || !CmpC->isZero()) in sinkAndCmp0Expression()