Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp367 std::pair<Value*, unsigned> InVal = in INITIALIZE_PASS_DEPENDENCY() local
369 if (InVal.first != 0 && InVal.second == CurrentGeneration) { in INITIALIZE_PASS_DEPENDENCY()
371 << *InVal.first << '\n'); in INITIALIZE_PASS_DEPENDENCY()
372 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
394 std::pair<Value*, unsigned> InVal = AvailableCalls->lookup(Inst); in INITIALIZE_PASS_DEPENDENCY() local
395 if (InVal.first != 0 && InVal.second == CurrentGeneration) { in INITIALIZE_PASS_DEPENDENCY()
397 << *InVal.first << '\n'); in INITIALIZE_PASS_DEPENDENCY()
398 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
DSimplifyCFGPass.cpp262 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in MergeEmptyReturnBlocks() local
269 RetBlockPHI->addIncoming(InVal, *PI); in MergeEmptyReturnBlocks()
DCodeGenPrepare.cpp308 Value *InVal = PN->removeIncomingValue(BB, false); in EliminateMostlyEmptyBlock() local
312 PHINode *InValPhi = dyn_cast<PHINode>(InVal); in EliminateMostlyEmptyBlock()
323 PN->addIncoming(InVal, BBPN->getIncomingBlock(i)); in EliminateMostlyEmptyBlock()
326 PN->addIncoming(InVal, *PI); in EliminateMostlyEmptyBlock()
DJumpThreading.cpp365 Value *InVal = PN->getIncomingValue(i); in ComputeValueKnownInPredecessors() local
366 if (Constant *KC = getKnownConstant(InVal, Preference)) { in ComputeValueKnownInPredecessors()
369 Constant *CI = LVI->getConstantOnEdge(InVal, in ComputeValueKnownInPredecessors()
DIndVarSimplify.cpp556 Value *InVal = PN->getIncomingValue(i); in RewriteLoopExitValues() local
557 if (!isa<Instruction>(InVal)) in RewriteLoopExitValues()
565 Instruction *Inst = cast<Instruction>(InVal); in RewriteLoopExitValues()
DScalarReplAggregates.cpp1266 Value *InVal = PN->getIncomingValue(i); in isSafePHIToSpeculate() local
1269 if (InvokeInst *II = dyn_cast<InvokeInst>(InVal)) in isSafePHIToSpeculate()
1275 if (InVal->isDereferenceablePointer() || in isSafePHIToSpeculate()
1276 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign, TD)) in isSafePHIToSpeculate()
DSCCP.cpp854 LatticeVal InVal = getValueState(Val); in visitInsertValueInst() local
855 mergeInValue(getStructValueState(&IVI, i), &IVI, InVal); in visitInsertValueInst()
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp238 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local
239 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop()
241 InVal = LastValueMap[InValI]; in UnrollLoop()
242 VMap[OrigPHINode[i]] = InVal; in UnrollLoop()
302 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local
305 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop()
307 InVal = LastValueMap[InVal]; in UnrollLoop()
309 PN->addIncoming(InVal, LastIterationBB); in UnrollLoop()
DBasicBlockUtils.cpp430 Value *InVal = 0; in SplitBlockPredecessors() local
432 InVal = PN->getIncomingValueForBlock(Preds[0]); in SplitBlockPredecessors()
434 if (InVal != PN->getIncomingValueForBlock(Preds[i])) { in SplitBlockPredecessors()
435 InVal = 0; in SplitBlockPredecessors()
440 if (InVal) { in SplitBlockPredecessors()
458 InVal = NewPHI; in SplitBlockPredecessors()
463 PN->addIncoming(InVal, NewBB); in SplitBlockPredecessors()
DCloneFunction.cpp435 Value *InVal = MapValue(PN->getIncomingValue(pred), in CloneAndPruneFunctionInto() local
438 assert(InVal && "Unknown input value?"); in CloneAndPruneFunctionInto()
439 PN->setIncomingValue(pred, InVal); in CloneAndPruneFunctionInto()
DSimplifyCFG.cpp2129 Value *InVal = PN->getIncomingValueForBlock(BB); in SimplifyBranchOnICmpChain() local
2131 PN->addIncoming(InVal, BB); in SimplifyBranchOnICmpChain()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp348 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local
349 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
354 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI()
355 InVal = 0; in FoldPHIArgLoadIntoPHI()
360 if (InVal) { in FoldPHIArgLoadIntoPHI()
363 PhiVal = InVal; in FoldPHIArgLoadIntoPHI()
456 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local
457 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI()
462 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI()
463 InVal = 0; in FoldPHIArgOpIntoPHI()
[all …]
DInstructionCombining.cpp570 Value *InVal = PN->getIncomingValue(i); in FoldOpIntoPhi() local
571 if (isa<Constant>(InVal) && !isa<ConstantExpr>(InVal)) in FoldOpIntoPhi()
574 if (isa<PHINode>(InVal)) return 0; // Itself a phi. in FoldOpIntoPhi()
581 if (InvokeInst *II = dyn_cast<InvokeInst>(InVal)) in FoldOpIntoPhi()
DInstCombineCasts.cpp1405 static Instruction *OptimizeVectorResize(Value *InVal, VectorType *DestTy, in OptimizeVectorResize() argument
1410 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in OptimizeVectorResize()
1422 InVal = IC.Builder->CreateBitCast(InVal, SrcTy); in OptimizeVectorResize()
1453 return new ShuffleVectorInst(InVal, V2, ConstantVector::get(ShuffleMask)); in OptimizeVectorResize()
/external/llvm/lib/Analysis/
DPHITransAddr.cpp369 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument
374 PHITransAddr Tmp(InVal, TD); in InsertPHITranslatedSubExpr()
380 Instruction *Inst = cast<Instruction>(InVal); in InsertPHITranslatedSubExpr()
391 OpVal, InVal->getType(), in InsertPHITranslatedSubExpr()
392 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
411 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
432 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
/external/llvm/lib/CodeGen/
DDwarfEHPrepare.cpp428 Value *InVal = PN->getIncomingValueForBlock(*PB); in NormalizeLandingPads() local
430 if (PI != PB && InVal != PN->getIncomingValueForBlock(*PI)) { in NormalizeLandingPads()
431 InVal = 0; in NormalizeLandingPads()
436 if (InVal == 0) { in NormalizeLandingPads()
447 InVal = NewPN; in NormalizeLandingPads()
456 PN->addIncoming(InVal, NewBB); in NormalizeLandingPads()
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp36 unsigned InVal = 4+CountS; in DecodeINSERTPSMask() local
38 ShuffleMask[CountD] = InVal; in DecodeINSERTPSMask()
/external/llvm/include/llvm/Analysis/
DPHITransAddr.h101 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1143 Value *InVal = PN->getIncomingValue(op); in AllGlobalLoadUsesSimpleEnoughForHeapSRA() local
1146 if (InVal == StoredVal) continue; in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1148 if (const PHINode *InPN = dyn_cast<PHINode>(InVal)) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1156 if (const LoadInst *LI = dyn_cast<LoadInst>(InVal)) in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1449 Value *InVal = PN->getIncomingValue(i); in PerformHeapAllocSRoA() local
1450 InVal = GetHeapSROAValue(InVal, FieldNo, InsertedScalarizedValues, in PerformHeapAllocSRoA()
1452 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.cpp2663 TreePatternNode *InVal = InstInputsCheck[OpName]; in ParseInstructions() local
2666 if (InVal->isLeaf() && in ParseInstructions()
2667 dynamic_cast<DefInit*>(InVal->getLeafValue())) { in ParseInstructions()
2668 Record *InRec = static_cast<DefInit*>(InVal->getLeafValue())->getDef(); in ParseInstructions()
2676 TreePatternNode *OpNode = InVal->clone(); in ParseInstructions()
/external/clang/lib/CodeGen/
DCGExpr.cpp540 ComplexPairTy InVal = LoadComplexFromAddr(LV.getAddress(), in EmitComplexPrePostIncDec() local
544 if (isa<llvm::IntegerType>(InVal.first->getType())) { in EmitComplexPrePostIncDec()
546 NextVal = llvm::ConstantInt::get(InVal.first->getType(), AmountVal, true); in EmitComplexPrePostIncDec()
549 NextVal = Builder.CreateAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); in EmitComplexPrePostIncDec()
558 NextVal = Builder.CreateFAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); in EmitComplexPrePostIncDec()
561 ComplexPairTy IncVal(NextVal, InVal.second); in EmitComplexPrePostIncDec()
568 return isPre ? IncVal : InVal; in EmitComplexPrePostIncDec()
DCGExprScalar.cpp312 llvm::Value *InVal,
1241 llvm::Value *InVal, in EmitAddConsiderOverflowBehavior() argument
1245 return Builder.CreateNSWAdd(InVal, NextVal, IsInc ? "inc" : "dec"); in EmitAddConsiderOverflowBehavior()
1248 return Builder.CreateAdd(InVal, NextVal, IsInc ? "inc" : "dec"); in EmitAddConsiderOverflowBehavior()
1252 BinOp.LHS = InVal; in EmitAddConsiderOverflowBehavior()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorTypes.cpp1486 SDValue InVal = DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL, InWidenVT, in WidenVecRes_Convert() local
1490 return DAG.getNode(Opcode, DL, WidenVT, InVal); in WidenVecRes_Convert()
1491 return DAG.getNode(Opcode, DL, WidenVT, InVal, N->getOperand(1)); in WidenVecRes_Convert()
DDAGCombiner.cpp6777 SDValue InVal = N->getOperand(1); in visitINSERT_VECTOR_ELT() local
6781 if (InVal.getOpcode() == ISD::UNDEF) in visitINSERT_VECTOR_ELT()
6797 Ops[Elt] = InVal; in visitINSERT_VECTOR_ELT()
6811 Ops[Elt] = InVal; in visitINSERT_VECTOR_ELT()

12