Searched refs:CmpLHS (Results 1 - 20 of 20) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp347 Value *CmpLHS = ICI->getOperand(0); local
384 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) ||
385 (CmpLHS == FalseVal && AdjustedRHS == TrueVal))
399 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) &&
401 CmpLHS = TrueVal;
403 } else if (match(FalseVal, m_SExt(m_Specific(CmpLHS))) &&
405 CmpLHS = FalseVal;
413 if (match(TrueVal, m_ZExt(m_Specific(CmpLHS))) &&
415 CmpLHS = TrueVal;
417 } else if (match(FalseVal, m_ZExt(m_Specific(CmpLHS)))
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp316 Value *CmpLHS = IC->getOperand(0);
324 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1))))
336 Value *V = CmpLHS;
373 Value *CmpLHS = ICI->getOperand(0); local
399 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) ||
400 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) {
419 Value *CmpLHS = ICI->getOperand(0); local
448 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) ||
449 (CmpLHS == FalseVal && AdjustedRHS == TrueVal))
463 if (match(TrueVal, m_SExt(m_Specific(CmpLHS)))
[all...]
/external/llvm/lib/Target/Mips/
H A DMips16ISelDAGToDAG.cpp196 SDValue InFlag = Node->getOperand(2), CmpLHS; local
205 CmpLHS = InFlag.getValue(0);
208 CmpLHS = InFlag.getOperand(0);
212 SDValue Ops[] = {CmpLHS, InFlag.getOperand(1)};
H A DMipsSEISelDAGToDAG.h42 void selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS,
H A DMipsSEISelDAGToDAG.cpp241 SDValue CmpLHS, const SDLoc &DL,
255 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) };
240 selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS, const SDLoc &DL, SDNode *Node) const argument
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp211 SDValue InFlag = Node->getOperand(2), CmpLHS; local
219 CmpLHS = InFlag.getValue(0);
222 CmpLHS = InFlag.getOperand(0);
226 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) };
/external/llvm/lib/Transforms/Scalar/
H A DAlignmentFromAssumptions.cpp215 Value *CmpLHS = ICI->getOperand(0);
217 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS);
220 std::swap(CmpLHS, CmpRHS);
224 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS);
H A DGuardWidening.cpp501 Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1);
503 std::swap(CmpLHS, CmpRHS);
508 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())),
H A DGVN.cpp1725 Value *CmpLHS = CmpI->getOperand(0); local
1727 if (isa<Constant>(CmpLHS))
1728 std::swap(CmpLHS, CmpRHS);
1732 if (RHSConst != nullptr && !isa<Constant>(CmpLHS))
1733 ReplaceWithConstMap[CmpLHS] = RHSConst;
/external/llvm/lib/Analysis/
H A DValueTracking.cpp3708 Value *CmpLHS, Value *CmpRHS,
3711 LHS = CmpLHS;
3724 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) &&
3738 bool LHSSafe = isKnownNonNaN(CmpLHS, FMF);
3771 if (TrueVal == CmpRHS && FalseVal == CmpLHS) {
3772 std::swap(CmpLHS, CmpRHS);
3782 if (TrueVal == CmpLHS && FalseVal == CmpRHS) {
3805 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) ||
3806 (CmpLHS
3706 matchSelectPattern(CmpInst::Predicate Pred, FastMathFlags FMF, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS) argument
3908 Value *CmpLHS = CmpI->getOperand(0); local
[all...]
H A DInstructionSimplify.cpp1937 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1);
1938 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS)
1941 LHS == CmpRHS && RHS == CmpLHS)
3405 Value *CmpLHS = ICI->getOperand(0); local
3413 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) &&
3418 X = CmpLHS;
3423 X = CmpLHS;
3476 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) ==
3478 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) ==
3481 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRH
[all...]
/external/llvm/lib/Target/X86/
H A DX86FastISel.cpp1578 const Value *CmpLHS = CI->getOperand(0); local
1588 CmpRHS = CmpLHS;
1620 std::swap(CmpLHS, CmpRHS);
1623 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc()))
1979 const Value *CmpLHS = CI->getOperand(0); local
1982 std::swap(CmpLHS, CmpRHS);
1984 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType());
1986 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc()))
2069 const Value *CmpLHS = CI->getOperand(0); local
2079 CmpRHS = CmpLHS;
2186 const Value *CmpLHS = CI->getOperand(0); local
[all...]
H A DX86ISelLowering.cpp[all...]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h211 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs),
218 // CmpLHS/CmpRHS/CmpMHS - The LHS/MHS/RHS of the comparison to emit.
221 const Value *CmpLHS, *CmpMHS, *CmpRHS; member in struct:llvm::SelectionDAGBuilder::CaseBlock
H A DSelectionDAGBuilder.cpp1423 if ((Cases[0].CmpLHS == Cases[1].CmpLHS &&
1425 (Cases[0].CmpRHS == Cases[1].CmpLHS &&
1426 Cases[0].CmpLHS == Cases[1].CmpRHS)) {
1506 ExportFromCurrentBlock(SwitchCases[i].CmpLHS);
1539 SDValue CondLHS = getValue(CB.CmpLHS);
1558 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue();
1564 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h224 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs),
231 // CmpLHS/CmpRHS/CmpMHS - The LHS/MHS/RHS of the comparison to emit.
234 const Value *CmpLHS, *CmpMHS, *CmpRHS; member in struct:llvm::SelectionDAGBuilder::CaseBlock
H A DSelectionDAGBuilder.cpp1762 if ((Cases[0].CmpLHS == Cases[1].CmpLHS &&
1764 (Cases[0].CmpRHS == Cases[1].CmpLHS &&
1765 Cases[0].CmpLHS == Cases[1].CmpRHS)) {
1842 ExportFromCurrentBlock(SwitchCases[i].CmpLHS);
1875 SDValue CondLHS = getValue(CB.CmpLHS);
1894 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue();
1900 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
H A DDAGCombiner.cpp14019 SDValue CmpLHS; local
14024 CmpLHS = TheSelect->getOperand(0);
14031 CmpLHS = Cmp.getOperand(0);
14036 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT ||
/external/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp2514 SDValue CmpLHS = Cond.getOperand(0); local
2519 RHS.getOperand(0) == CmpLHS &&
2521 return getFFBH_U32(*this, DAG, SL, CmpLHS);
2527 LHS.getOperand(0) == CmpLHS &&
2529 return getFFBH_U32(*this, DAG, SL, CmpLHS);
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DInstructionSimplify.cpp1410 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1);
1411 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS)
1414 LHS == CmpRHS && RHS == CmpLHS)

Completed in 3044 milliseconds