Home
last modified time | relevance | path

Searched refs:CondLHS (Results 1 – 9 of 9) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp1837 PHINode *CondLHS = dyn_cast<PHINode>(CondCmp->getOperand(0)); in TryToUnfoldSelect() local
1840 if (!CondBr || !CondBr->isConditional() || !CondLHS || in TryToUnfoldSelect()
1841 CondLHS->getParent() != BB) in TryToUnfoldSelect()
1844 for (unsigned I = 0, E = CondLHS->getNumIncomingValues(); I != E; ++I) { in TryToUnfoldSelect()
1845 BasicBlock *Pred = CondLHS->getIncomingBlock(I); in TryToUnfoldSelect()
1846 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in TryToUnfoldSelect()
1885 CondLHS->setIncomingValue(I, SI->getFalseValue()); in TryToUnfoldSelect()
1886 CondLHS->addIncoming(SI->getTrueValue(), NewBB); in TryToUnfoldSelect()
1893 if (Phi != CondLHS) in TryToUnfoldSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp2401 PHINode *CondLHS = dyn_cast<PHINode>(CondCmp->getOperand(0)); in TryToUnfoldSelect() local
2404 if (!CondBr || !CondBr->isConditional() || !CondLHS || in TryToUnfoldSelect()
2405 CondLHS->getParent() != BB) in TryToUnfoldSelect()
2408 for (unsigned I = 0, E = CondLHS->getNumIncomingValues(); I != E; ++I) { in TryToUnfoldSelect()
2409 BasicBlock *Pred = CondLHS->getIncomingBlock(I); in TryToUnfoldSelect()
2410 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in TryToUnfoldSelect()
2453 CondLHS->setIncomingValue(I, SI->getFalseValue()); in TryToUnfoldSelect()
2454 CondLHS->addIncoming(SI->getTrueValue(), NewBB); in TryToUnfoldSelect()
2463 if (Phi != CondLHS) in TryToUnfoldSelect()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1539 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase() local
1548 Cond = CondLHS; in visitSwitchCase()
1551 SDValue True = DAG.getConstant(1, CondLHS.getValueType()); in visitSwitchCase()
1552 Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True); in visitSwitchCase()
1554 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, getValue(CB.CmpRHS), CB.CC); in visitSwitchCase()
1916 SDValue CondLHS = getValue(SV); in handleSmallSwitchRange() local
1917 EVT VT = CondLHS.getValueType(); in handleSmallSwitchRange()
1920 SDValue Or = DAG.getNode(ISD::OR, DL, VT, CondLHS, in handleSmallSwitchRange()
DDAGCombiner.cpp5839 SDValue CondLHS = N->getOperand(2), CondRHS = N->getOperand(3); in visitBR_CC() local
5848 SDValue Simp = SimplifySetCC(TLI.getSetCCResultType(CondLHS.getValueType()), in visitBR_CC()
5849 CondLHS, CondRHS, CC->get(), N->getDebugLoc(), in visitBR_CC()
7372 SDNode *CondLHS = TheSelect->getOperand(0).getNode(); in SimplifySelectOps() local
7376 (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS))) || in SimplifySelectOps()
7378 (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS)))) in SimplifySelectOps()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1875 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase() local
1884 Cond = CondLHS; in visitSwitchCase()
1887 SDValue True = DAG.getConstant(1, dl, CondLHS.getValueType()); in visitSwitchCase()
1888 Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True); in visitSwitchCase()
1890 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, getValue(CB.CmpRHS), CB.CC); in visitSwitchCase()
8695 SDValue CondLHS = getValue(Cond); in lowerWorkItem() local
8696 EVT VT = CondLHS.getValueType(); in lowerWorkItem()
8699 SDValue Or = DAG.getNode(ISD::OR, DL, VT, CondLHS, in lowerWorkItem()
DDAGCombiner.cpp9585 SDValue CondLHS = N->getOperand(2), CondRHS = N->getOperand(3); in visitBR_CC() local
9594 SDValue Simp = SimplifySetCC(getSetCCResultType(CondLHS.getValueType()), in visitBR_CC()
9595 CondLHS, CondRHS, CC->get(), SDLoc(N), in visitBR_CC()
14104 SDNode *CondLHS = TheSelect->getOperand(0).getNode(); in SimplifySelectOps() local
14108 (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS))) || in SimplifySelectOps()
14110 (RLD->isPredecessorOf(CondLHS) || RLD->isPredecessorOf(CondRHS)))) in SimplifySelectOps()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2056 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase() local
2065 Cond = CondLHS; in visitSwitchCase()
2068 SDValue True = DAG.getConstant(1, dl, CondLHS.getValueType()); in visitSwitchCase()
2069 Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True); in visitSwitchCase()
2071 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, getValue(CB.CmpRHS), CB.CC); in visitSwitchCase()
9803 SDValue CondLHS = getValue(Cond); in lowerWorkItem() local
9804 EVT VT = CondLHS.getValueType(); in lowerWorkItem()
9807 SDValue Or = DAG.getNode(ISD::OR, DL, VT, CondLHS, in lowerWorkItem()
DDAGCombiner.cpp12137 SDValue CondLHS = N->getOperand(2), CondRHS = N->getOperand(3); in visitBR_CC() local
12146 SDValue Simp = SimplifySetCC(getSetCCResultType(CondLHS.getValueType()), in visitBR_CC()
12147 CondLHS, CondRHS, CC->get(), SDLoc(N), in visitBR_CC()
17698 SDNode *CondLHS = TheSelect->getOperand(0).getNode(); in SimplifySelectOps() local
17702 (LLD->isPredecessorOf(CondLHS) || LLD->isPredecessorOf(CondRHS))) || in SimplifySelectOps()
17704 (RLD->isPredecessorOf(CondLHS) || RLD->isPredecessorOf(CondRHS)))) in SimplifySelectOps()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelLowering.cpp7792 SDValue CondLHS = N->getOperand(0); in PerformSELECT_CCCombine() local
7800 if (DAG.isEqualTo(LHS, CondLHS) && DAG.isEqualTo(RHS, CondRHS)) { in PerformSELECT_CCCombine()
7802 } else if (DAG.isEqualTo(LHS, CondRHS) && DAG.isEqualTo(RHS, CondLHS)) { in PerformSELECT_CCCombine()