Home
last modified time | relevance | path

Searched refs:NewI (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DNaryReassociate.cpp239 if (Instruction *NewI = tryReassociate(&*I)) { in doOneIteration() local
242 I->replaceAllUsesWith(NewI); in doOneIteration()
243 WeakVH NewIExist = NewI; in doOneIteration()
254 I = NewI->getIterator(); in doOneIteration()
442 if (auto *NewI = tryReassociateBinaryOp(LHS, RHS, I)) in tryReassociateBinaryOp() local
443 return NewI; in tryReassociateBinaryOp()
444 if (auto *NewI = tryReassociateBinaryOp(RHS, LHS, I)) in tryReassociateBinaryOp() local
445 return NewI; in tryReassociateBinaryOp()
460 if (auto *NewI = in tryReassociateBinaryOp() local
462 return NewI; in tryReassociateBinaryOp()
[all …]
DSpeculateAroundPHIs.cpp658 auto *NewI = OrigI->clone(); in speculatePHIs() local
659 NewI->setName(Twine(OrigI->getName()) + "." + Twine(PredIdx)); in speculatePHIs()
660 NewI->insertBefore(PredBB->getTerminator()); in speculatePHIs()
665 for (Use &U : NewI->operands()) { in speculatePHIs()
684 if (NewI->isBinaryOp() && NewI->isCommutative() && in speculatePHIs()
685 isa<Constant>(NewI->getOperand(0)) && in speculatePHIs()
686 !isa<Constant>(NewI->getOperand(1))) in speculatePHIs()
687 NewI->getOperandUse(0).swap(NewI->getOperandUse(1)); in speculatePHIs()
689 SpeculatedValueMap[OrigI].push_back(NewI); in speculatePHIs()
690 assert(SpeculatedValueMap[OrigI][PredIdx] == NewI && in speculatePHIs()
DInferAddressSpaces.cpp594 if (Instruction *NewI = dyn_cast<Instruction>(NewV)) { in cloneValueWithNewAddressSpace() local
595 if (NewI->getParent() == nullptr) { in cloneValueWithNewAddressSpace()
596 NewI->insertBefore(I); in cloneValueWithNewAddressSpace()
597 NewI->takeName(I); in cloneValueWithNewAddressSpace()
DLoopInterchange.cpp1261 Instruction *NewI = WorkList[i]->clone(); in transform() local
1262 NewI->insertBefore(NewLatch->getFirstNonPHI()); in transform()
1263 assert(!NewI->mayHaveSideEffects() && in transform()
1272 U.set(NewI); in transform()
DCorrelatedValuePropagation.cpp509 Value *NewI = B.CreateInsertValue(Struct, NewOp, 0); in processOverflowIntrinsic() local
510 WO->replaceAllUsesWith(NewI); in processOverflowIntrinsic()
DRewriteStatepointsForGC.cpp1372 Instruction *NewI = New; in doReplacement() local
1374 assert(OldI != NewI && "Disallowed at construction?!"); in doReplacement()
1381 if (NewI) in doReplacement()
1382 OldI->replaceAllUsesWith(NewI); in doReplacement()
DLoopUnswitch.cpp379 Value *NewI = VMap.lookup(OldInst); in cloneData() local
380 const SwitchInst *NewInst = cast_or_null<SwitchInst>(NewI); in cloneData()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp301 auto *NewI = new LoadInst(I->getType(), V); in replace() local
302 NewI->takeName(LT); in replace()
303 IC.InsertNewInstWith(NewI, *LT); in replace()
304 IC.replaceInstUsesWith(*LT, NewI); in replace()
305 WorkMap[LT] = NewI; in replace()
311 auto *NewI = GetElementPtrInst::Create( in replace() local
313 IC.InsertNewInstWith(NewI, *GEP); in replace()
314 NewI->takeName(GEP); in replace()
315 WorkMap[GEP] = NewI; in replace()
321 auto *NewI = new BitCastInst(V, NewT); in replace() local
[all …]
DInstCombineSelect.cpp884 IntrinsicInst *NewI = cast<IntrinsicInst>(II->clone()); in foldSelectCttzCtlz() local
885 NewI->setArgOperand(1, ConstantInt::getFalse(NewI->getContext())); in foldSelectCttzCtlz()
886 Builder.Insert(NewI); in foldSelectCttzCtlz()
887 return Builder.CreateZExtOrTrunc(NewI, ValueOnZero->getType()); in foldSelectCttzCtlz()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAtomicOptimizer.cpp573 Instruction *const NewI = I.clone(); in optimizeAtomic() local
574 B.Insert(NewI); in optimizeAtomic()
575 NewI->setOperand(ValIdx, NewV); in optimizeAtomic()
586 PHI->addIncoming(NewI, SingleLaneTerminator->getParent()); in optimizeAtomic()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineBasicBlock.cpp722 succ_iterator NewI = E; in replaceSuccessor() local
727 if (NewI != E) in replaceSuccessor()
731 NewI = I; in replaceSuccessor()
739 if (NewI == E) { in replaceSuccessor()
749 auto ProbIter = getProbabilityIterator(NewI); in replaceSuccessor()
DWinEHPrepare.cpp901 auto *NewI = cast<Instruction>(VT.second); in cloneCommonBlocks() local
925 SSAUpdate.AddAvailableValue(NewI->getParent(), NewI); in cloneCommonBlocks()
DScalarizeMaskedMemIntrin.cpp147 Value *NewI = Builder.CreateAlignedLoad(VecType, Ptr, AlignVal); in scalarizeMaskedLoad() local
148 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonExpandCondsets.cpp896 MachineInstr *NewI = MB; in predicateAt() local
897 NewI->clearKillInfo(); in predicateAt()
898 LIS->InsertMachineInstrInMaps(*NewI); in predicateAt()
900 for (auto &Op : NewI->operands()) in predicateAt()
DHexagonSplitDouble.cpp598 MachineInstr *NewI = BuildMI(B, MI, DL, TII->get(Opc)); in createHalfInstr() local
602 NewI->addOperand(Op); in createHalfInstr()
624 NewI->addOperand(CO); in createHalfInstr()
DHexagonFrameLowering.cpp725 MachineInstr *NewI = BuildMI(MBB, RetI, dl, HII.get(NewOpc)) in insertEpilogueInBlock() local
729 NewI->copyImplicitOps(MF, *RetI); in insertEpilogueInBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DInlineFunction.cpp1794 Instruction *NewI = nullptr; in InlineFunction() local
1796 NewI = CallInst::Create(cast<CallInst>(I), OpDefs, I); in InlineFunction()
1798 NewI = CallBrInst::Create(cast<CallBrInst>(I), OpDefs, I); in InlineFunction()
1800 NewI = InvokeInst::Create(cast<InvokeInst>(I), OpDefs, I); in InlineFunction()
1804 I->replaceAllUsesWith(NewI); in InlineFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp3359 Value *NewI = nullptr; in truncateToMinimalBitwidths() local
3361 NewI = B.CreateBinOp(BO->getOpcode(), ShrinkOperand(BO->getOperand(0)), in truncateToMinimalBitwidths()
3367 cast<BinaryOperator>(NewI)->copyIRFlags(I, /*IncludeWrapFlags=*/false); in truncateToMinimalBitwidths()
3369 NewI = in truncateToMinimalBitwidths()
3373 NewI = B.CreateSelect(SI->getCondition(), in truncateToMinimalBitwidths()
3381 NewI = ShrinkOperand(CI->getOperand(0)); in truncateToMinimalBitwidths()
3384 NewI = B.CreateSExtOrTrunc( in truncateToMinimalBitwidths()
3389 NewI = B.CreateZExtOrTrunc( in truncateToMinimalBitwidths()
3402 NewI = B.CreateShuffleVector(O0, O1, SI->getMask()); in truncateToMinimalBitwidths()
3411 NewI = B.CreateInsertElement(O0, O1, IE->getOperand(2)); in truncateToMinimalBitwidths()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp1316 auto NewI = in earlySelectSHL() local
1321 RenderFn(NewI); in earlySelectSHL()
1323 RenderFn(NewI); in earlySelectSHL()
1326 return constrainSelectedInstRegOperands(*NewI, TII, TRI, RBI); in earlySelectSHL()