Home
last modified time | relevance | path

Searched refs:InVal (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp352 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local
353 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
358 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI()
359 InVal = nullptr; in FoldPHIArgLoadIntoPHI()
364 if (InVal) { in FoldPHIArgLoadIntoPHI()
367 PhiVal = InVal; in FoldPHIArgLoadIntoPHI()
460 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local
461 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI()
466 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI()
467 InVal = nullptr; in FoldPHIArgOpIntoPHI()
[all …]
DInstCombineCasts.cpp1517 static Instruction *OptimizeVectorResize(Value *InVal, VectorType *DestTy, in OptimizeVectorResize() argument
1522 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in OptimizeVectorResize()
1534 InVal = IC.Builder->CreateBitCast(InVal, SrcTy); in OptimizeVectorResize()
1564 return new ShuffleVectorInst(InVal, V2, in OptimizeVectorResize()
DInstructionCombining.cpp750 Value *InVal = PN->getIncomingValue(i); in FoldOpIntoPhi() local
751 if (isa<Constant>(InVal) && !isa<ConstantExpr>(InVal)) in FoldOpIntoPhi()
754 if (isa<PHINode>(InVal)) return nullptr; // Itself a phi. in FoldOpIntoPhi()
761 if (InvokeInst *II = dyn_cast<InvokeInst>(InVal)) in FoldOpIntoPhi()
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp472 std::pair<Value*, unsigned> InVal = in INITIALIZE_PASS_DEPENDENCY() local
474 if (InVal.first != nullptr && InVal.second == CurrentGeneration) { in INITIALIZE_PASS_DEPENDENCY()
476 << *InVal.first << '\n'); in INITIALIZE_PASS_DEPENDENCY()
477 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
499 std::pair<Value*, unsigned> InVal = AvailableCalls->lookup(Inst); in INITIALIZE_PASS_DEPENDENCY() local
500 if (InVal.first != nullptr && InVal.second == CurrentGeneration) { in INITIALIZE_PASS_DEPENDENCY()
502 << *InVal.first << '\n'); in INITIALIZE_PASS_DEPENDENCY()
503 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
DSimplifyCFGPass.cpp124 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks() local
131 RetBlockPHI->addIncoming(InVal, *PI); in mergeEmptyReturnBlocks()
DIndVarSimplify.cpp537 Value *InVal = PN->getIncomingValue(i); in RewriteLoopExitValues() local
538 if (!isa<Instruction>(InVal)) in RewriteLoopExitValues()
546 Instruction *Inst = cast<Instruction>(InVal); in RewriteLoopExitValues()
DJumpThreading.cpp395 Value *InVal = PN->getIncomingValue(i); in ComputeValueKnownInPredecessors() local
396 if (Constant *KC = getKnownConstant(InVal, Preference)) { in ComputeValueKnownInPredecessors()
399 Constant *CI = LVI->getConstantOnEdge(InVal, in ComputeValueKnownInPredecessors()
DSROA.cpp1117 Value *InVal = PN.getIncomingValue(Idx); in isSafePHIToSpeculate() local
1122 if (TI == InVal || TI->mayHaveSideEffects()) in isSafePHIToSpeculate()
1133 if (InVal->isDereferenceablePointer(DL) || in isSafePHIToSpeculate()
1134 isSafeToLoadUnconditionally(InVal, TI, MaxAlign, DL)) in isSafePHIToSpeculate()
1168 Value *InVal = PN.getIncomingValue(Idx); in speculatePHINodeLoads() local
1172 InVal, (PN.getName() + ".sroa.speculate.load." + Pred->getName())); in speculatePHINodeLoads()
DScalarReplAggregates.cpp1211 Value *InVal = PN->getIncomingValue(i); in isSafePHIToSpeculate() local
1220 if (Pred->getTerminator() == InVal) in isSafePHIToSpeculate()
1229 if (InVal->isDereferenceablePointer(DL) || in isSafePHIToSpeculate()
1230 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign, DL)) in isSafePHIToSpeculate()
DSCCP.cpp805 LatticeVal InVal = getValueState(Val); in visitInsertValueInst() local
806 mergeInValue(getStructValueState(&IVI, i), &IVI, InVal); in visitInsertValueInst()
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp306 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local
307 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop()
309 InVal = LastValueMap[InValI]; in UnrollLoop()
310 VMap[OrigPHINode[i]] = InVal; in UnrollLoop()
361 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local
364 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop()
366 InVal = LastValueMap[InVal]; in UnrollLoop()
369 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
DLoopUnrollRuntime.cpp179 Value *InVal = NewPHI->getIncomingValue(idx); in CloneLoopBlocks() local
180 if (Instruction *I = dyn_cast<Instruction>(InVal)) in CloneLoopBlocks()
182 InVal = LVMap[InVal]; in CloneLoopBlocks()
183 NewPHI->setIncomingValue(idx, InVal); in CloneLoopBlocks()
DBasicBlockUtils.cpp394 Value *InVal = nullptr; in UpdatePHINodes() local
396 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes()
400 if (!InVal) in UpdatePHINodes()
401 InVal = PN->getIncomingValue(i); in UpdatePHINodes()
402 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes()
403 InVal = nullptr; in UpdatePHINodes()
409 if (InVal) { in UpdatePHINodes()
424 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
DCloneFunction.cpp493 Value *InVal = MapValue(PN->getIncomingValue(pred), in CloneAndPruneFunctionInto() local
496 assert(InVal && "Unknown input value?"); in CloneAndPruneFunctionInto()
497 PN->setIncomingValue(pred, InVal); in CloneAndPruneFunctionInto()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp367 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument
372 PHITransAddr Tmp(InVal, DL); in InsertPHITranslatedSubExpr()
378 Instruction *Inst = cast<Instruction>(InVal); in InsertPHITranslatedSubExpr()
389 OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
390 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
409 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
430 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp37 unsigned InVal = 4+CountS; in DecodeINSERTPSMask() local
39 ShuffleMask[CountD] = InVal; in DecodeINSERTPSMask()
/external/llvm/include/llvm/Analysis/
DPHITransAddr.h106 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
/external/llvm/lib/Target/R600/
DR600ISelLowering.cpp1881 SDValue InVal = N->getOperand(1); in PerformDAGCombine() local
1886 if (InVal.getOpcode() == ISD::UNDEF) in PerformDAGCombine()
1909 Ops.append(NElts, DAG.getUNDEF(InVal.getValueType())); in PerformDAGCombine()
1919 if (InVal.getValueType() != OpVT) in PerformDAGCombine()
1920 InVal = OpVT.bitsGT(InVal.getValueType()) ? in PerformDAGCombine()
1921 DAG.getNode(ISD::ANY_EXTEND, dl, OpVT, InVal) : in PerformDAGCombine()
1922 DAG.getNode(ISD::TRUNCATE, dl, OpVT, InVal); in PerformDAGCombine()
1923 Ops[Elt] = InVal; in PerformDAGCombine()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1122 Value *InVal = PN->getIncomingValue(op); in AllGlobalLoadUsesSimpleEnoughForHeapSRA() local
1125 if (InVal == StoredVal) continue; in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1127 if (const PHINode *InPN = dyn_cast<PHINode>(InVal)) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1135 if (const LoadInst *LI = dyn_cast<LoadInst>(InVal)) in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1426 Value *InVal = PN->getIncomingValue(i); in PerformHeapAllocSRoA() local
1427 InVal = GetHeapSROAValue(InVal, FieldNo, InsertedScalarizedValues, in PerformHeapAllocSRoA()
1429 FieldPN->addIncoming(InVal, PN->getIncomingBlock(i)); in PerformHeapAllocSRoA()
/external/llvm/utils/TableGen/
DDAGISelMatcherEmitter.cpp121 uint64_t InVal = Val; in EmitVBRValue() local
130 OS << "/*" << InVal << "*/"; in EmitVBRValue()
DCodeGenDAGPatterns.cpp2865 TreePatternNode *InVal = InstInputsCheck[OpName]; in parseInstructionPattern() local
2868 if (InVal->isLeaf() && isa<DefInit>(InVal->getLeafValue())) { in parseInstructionPattern()
2869 Record *InRec = static_cast<DefInit*>(InVal->getLeafValue())->getDef(); in parseInstructionPattern()
2877 TreePatternNode *OpNode = InVal->clone(); in parseInstructionPattern()
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp488 SDValue InVal; in LowerCCCArguments() local
494 InVal = DAG.getFrameIndex(FI, getPointerTy()); in LowerCCCArguments()
509 InVal = DAG.getLoad(VA.getLocVT(), dl, Chain, FIN, in LowerCCCArguments()
514 InVals.push_back(InVal); in LowerCCCArguments()
/external/clang/lib/CodeGen/
DCGExpr.cpp677 ComplexPairTy InVal = EmitLoadOfComplex(LV, E->getExprLoc()); in EmitComplexPrePostIncDec() local
680 if (isa<llvm::IntegerType>(InVal.first->getType())) { in EmitComplexPrePostIncDec()
682 NextVal = llvm::ConstantInt::get(InVal.first->getType(), AmountVal, true); in EmitComplexPrePostIncDec()
685 NextVal = Builder.CreateAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); in EmitComplexPrePostIncDec()
694 NextVal = Builder.CreateFAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); in EmitComplexPrePostIncDec()
697 ComplexPairTy IncVal(NextVal, InVal.second); in EmitComplexPrePostIncDec()
704 return isPre ? IncVal : InVal; in EmitComplexPrePostIncDec()
DCGExprScalar.cpp309 llvm::Value *InVal,
1521 llvm::Value *InVal, in EmitAddConsiderOverflowBehavior() argument
1525 return Builder.CreateAdd(InVal, NextVal, IsInc ? "inc" : "dec"); in EmitAddConsiderOverflowBehavior()
1528 return Builder.CreateNSWAdd(InVal, NextVal, IsInc ? "inc" : "dec"); in EmitAddConsiderOverflowBehavior()
1532 BinOp.LHS = InVal; in EmitAddConsiderOverflowBehavior()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp439 Value *InVal = PN->removeIncomingValue(BB, false); in EliminateMostlyEmptyBlock() local
443 PHINode *InValPhi = dyn_cast<PHINode>(InVal); in EliminateMostlyEmptyBlock()
454 PN->addIncoming(InVal, BBPN->getIncomingBlock(i)); in EliminateMostlyEmptyBlock()
457 PN->addIncoming(InVal, *PI); in EliminateMostlyEmptyBlock()

12