/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 1837 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-10.0/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 2504 PHINode *CondLHS = dyn_cast<PHINode>(CondCmp->getOperand(0)); in TryToUnfoldSelect() local 2507 if (!CondBr || !CondBr->isConditional() || !CondLHS || in TryToUnfoldSelect() 2508 CondLHS->getParent() != BB) in TryToUnfoldSelect() 2511 for (unsigned I = 0, E = CondLHS->getNumIncomingValues(); I != E; ++I) { in TryToUnfoldSelect() 2512 BasicBlock *Pred = CondLHS->getIncomingBlock(I); in TryToUnfoldSelect() 2513 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in TryToUnfoldSelect() 2540 UnfoldSelectInstr(Pred, BB, SI, CondLHS, I); in TryToUnfoldSelect()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 2776 PHINode *CondLHS = dyn_cast<PHINode>(CondCmp->getOperand(0)); in tryToUnfoldSelect() local 2779 if (!CondBr || !CondBr->isConditional() || !CondLHS || in tryToUnfoldSelect() 2780 CondLHS->getParent() != BB) in tryToUnfoldSelect() 2783 for (unsigned I = 0, E = CondLHS->getNumIncomingValues(); I != E; ++I) { in tryToUnfoldSelect() 2784 BasicBlock *Pred = CondLHS->getIncomingBlock(I); in tryToUnfoldSelect() 2785 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in tryToUnfoldSelect() 2808 unfoldSelectInstr(Pred, BB, SI, CondLHS, I); in tryToUnfoldSelect()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | IRTranslator.cpp | 806 Register CondLHS = getOrCreateVReg(*CB.CmpLHS); in emitSwitchCase() local 832 MRI->getType(CondLHS).getSizeInBits() == 1 && in emitSwitchCase() 834 Cond = CondLHS; in emitSwitchCase() 839 MIB.buildFCmp(CB.PredInfo.Pred, i1Ty, CondLHS, CondRHS).getReg(0); in emitSwitchCase() 842 MIB.buildICmp(CB.PredInfo.Pred, i1Ty, CondLHS, CondRHS).getReg(0); in emitSwitchCase() 858 auto Sub = MIB.buildSub({CmpTy}, CmpOpReg, CondLHS); in emitSwitchCase()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | IRTranslator.cpp | 570 Register CondLHS = getOrCreateVReg(*CB.CmpLHS); in emitSwitchCase() local 592 Cond = MIB.buildICmp(CB.PredInfo.Pred, i1Ty, CondLHS, CondRHS).getReg(0); in emitSwitchCase() 607 auto Sub = MIB.buildSub({CmpTy}, CmpOpReg, CondLHS); in emitSwitchCase()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 2344 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase() local 2367 Cond = CondLHS; in visitSwitchCase() 2370 SDValue True = DAG.getConstant(1, dl, CondLHS.getValueType()); in visitSwitchCase() 2371 Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True); in visitSwitchCase() 2378 if (CondLHS.getValueType() != MemVT) { in visitSwitchCase() 2379 CondLHS = DAG.getPtrExtOrTrunc(CondLHS, getCurSDLoc(), MemVT); in visitSwitchCase() 2382 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, CondRHS, CB.CC); in visitSwitchCase() 10132 SDValue CondLHS = getValue(Cond); in lowerWorkItem() local 10133 EVT VT = CondLHS.getValueType(); in lowerWorkItem() 10136 SDValue Or = DAG.getNode(ISD::OR, DL, VT, CondLHS, in lowerWorkItem()
|
D | DAGCombiner.cpp | 13649 SDValue CondLHS = N->getOperand(2), CondRHS = N->getOperand(3); in visitBR_CC() local 13658 SDValue Simp = SimplifySetCC(getSetCCResultType(CondLHS.getValueType()), in visitBR_CC() 13659 CondLHS, CondRHS, CC->get(), SDLoc(N), in visitBR_CC() 20171 SDNode *CondLHS = TheSelect->getOperand(0).getNode(); in SimplifySelectOps() local 20173 Worklist.push_back(CondLHS); in SimplifySelectOps()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 2317 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase() local 2340 Cond = CondLHS; in visitSwitchCase() 2343 SDValue True = DAG.getConstant(1, dl, CondLHS.getValueType()); in visitSwitchCase() 2344 Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True); in visitSwitchCase() 2351 if (CondLHS.getValueType() != MemVT) { in visitSwitchCase() 2352 CondLHS = DAG.getPtrExtOrTrunc(CondLHS, getCurSDLoc(), MemVT); in visitSwitchCase() 2355 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, CondRHS, CB.CC); in visitSwitchCase() 10263 SDValue CondLHS = getValue(Cond); in lowerWorkItem() local 10264 EVT VT = CondLHS.getValueType(); in lowerWorkItem() 10267 SDValue Or = DAG.getNode(ISD::OR, DL, VT, CondLHS, in lowerWorkItem()
|
D | DAGCombiner.cpp | 9759 SDValue CondLHS = LHS, CondRHS = RHS; in visitVSELECT() local 9764 std::swap(CondLHS, CondRHS); in visitVSELECT() 9772 (OpLHS == CondLHS || OpRHS == CondLHS)) in visitVSELECT() 9776 CondLHS == OpLHS) { in visitVSELECT() 14685 SDValue CondLHS = N->getOperand(2), CondRHS = N->getOperand(3); in visitBR_CC() local 14694 SDValue Simp = SimplifySetCC(getSetCCResultType(CondLHS.getValueType()), in visitBR_CC() 14695 CondLHS, CondRHS, CC->get(), SDLoc(N), in visitBR_CC() 21606 SDNode *CondLHS = TheSelect->getOperand(0).getNode(); in SimplifySelectOps() local 21608 Worklist.push_back(CondLHS); in SimplifySelectOps()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 1875 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()
|
D | DAGCombiner.cpp | 9585 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-10.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 38256 SDValue CondLHS = Cond->getOperand(0); in combineSelect() local 38274 std::swap(CondLHS, CondRHS); in combineSelect() 38282 (OpLHS == CondLHS || OpRHS == CondLHS)) in combineSelect() 38286 CondLHS == OpLHS) { in combineSelect()
|