Home
last modified time | relevance | path

Searched refs:NewInsts (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/llvm/lib/Analysis/
DPHITransAddr.cpp343 SmallVectorImpl<Instruction*> &NewInsts) { in PHITranslateWithInsertion() argument
344 unsigned NISize = NewInsts.size(); in PHITranslateWithInsertion()
347 Addr = InsertPHITranslatedSubExpr(Addr, CurBB, PredBB, DT, NewInsts); in PHITranslateWithInsertion()
353 while (NewInsts.size() != NISize) in PHITranslateWithInsertion()
354 NewInsts.pop_back_val()->eraseFromParent(); in PHITranslateWithInsertion()
367 SmallVectorImpl<Instruction*> &NewInsts) { in InsertPHITranslatedSubExpr() argument
383 CurBB, PredBB, DT, NewInsts); in InsertPHITranslatedSubExpr()
391 NewInsts.push_back(New); in InsertPHITranslatedSubExpr()
401 CurBB, PredBB, DT, NewInsts); in InsertPHITranslatedSubExpr()
411 NewInsts.push_back(Result); in InsertPHITranslatedSubExpr()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPHITransAddr.cpp343 SmallVectorImpl<Instruction*> &NewInsts) { in PHITranslateWithInsertion() argument
344 unsigned NISize = NewInsts.size(); in PHITranslateWithInsertion()
347 Addr = InsertPHITranslatedSubExpr(Addr, CurBB, PredBB, DT, NewInsts); in PHITranslateWithInsertion()
353 while (NewInsts.size() != NISize) in PHITranslateWithInsertion()
354 NewInsts.pop_back_val()->eraseFromParent(); in PHITranslateWithInsertion()
367 SmallVectorImpl<Instruction*> &NewInsts) { in InsertPHITranslatedSubExpr() argument
383 CurBB, PredBB, DT, NewInsts); in InsertPHITranslatedSubExpr()
391 NewInsts.push_back(New); in InsertPHITranslatedSubExpr()
401 CurBB, PredBB, DT, NewInsts); in InsertPHITranslatedSubExpr()
411 NewInsts.push_back(Result); in InsertPHITranslatedSubExpr()
[all …]
/external/llvm/lib/Analysis/
DPHITransAddr.cpp347 SmallVectorImpl<Instruction*> &NewInsts) { in PHITranslateWithInsertion() argument
348 unsigned NISize = NewInsts.size(); in PHITranslateWithInsertion()
351 Addr = InsertPHITranslatedSubExpr(Addr, CurBB, PredBB, DT, NewInsts); in PHITranslateWithInsertion()
357 while (NewInsts.size() != NISize) in PHITranslateWithInsertion()
358 NewInsts.pop_back_val()->eraseFromParent(); in PHITranslateWithInsertion()
371 SmallVectorImpl<Instruction*> &NewInsts) { in InsertPHITranslatedSubExpr() argument
387 CurBB, PredBB, DT, NewInsts); in InsertPHITranslatedSubExpr()
395 NewInsts.push_back(New); in InsertPHITranslatedSubExpr()
405 CurBB, PredBB, DT, NewInsts); in InsertPHITranslatedSubExpr()
415 NewInsts.push_back(Result); in InsertPHITranslatedSubExpr()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DGVNSink.cpp173 SmallVector<Instruction *, 4> NewInsts; in operator --() local
178 NewInsts.push_back(Inst->getPrevNode()); in operator --()
180 if (NewInsts.empty()) { in operator --()
184 Insts = NewInsts; in operator --()
666 SmallVector<Instruction *, 4> NewInsts; in analyzeInstructionForSinking() local
671 NewInsts.push_back(I); in analyzeInstructionForSinking()
673 for (auto *I : NewInsts) in analyzeInstructionForSinking()
692 ModelledPHI NewPHI(NewInsts, ActivePreds); in analyzeInstructionForSinking()
720 Instruction *I0 = NewInsts[0]; in analyzeInstructionForSinking()
727 if (any_of(NewInsts, hasDifferentNumOperands)) in analyzeInstructionForSinking()
[all …]
DGVN.cpp1285 SmallVector<Instruction*, 8> NewInsts; in PerformLoadPRE() local
1302 Cur, Cur->getSinglePredecessor(), *DT, NewInsts); in PerformLoadPRE()
1313 NewInsts); in PerformLoadPRE()
1328 while (!NewInsts.empty()) { in PerformLoadPRE()
1334 NewInsts.pop_back_val()->eraseFromParent(); in PerformLoadPRE()
1345 LLVM_DEBUG(if (!NewInsts.empty()) dbgs() in PerformLoadPRE()
1346 << "INSERTED " << NewInsts.size() << " INSTS: " << *NewInsts.back() in PerformLoadPRE()
1350 for (Instruction *I : NewInsts) { in PerformLoadPRE()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DGVNSink.cpp174 SmallVector<Instruction *, 4> NewInsts; in operator --() local
179 NewInsts.push_back(Inst->getPrevNode()); in operator --()
181 if (NewInsts.empty()) { in operator --()
185 Insts = NewInsts; in operator --()
663 SmallVector<Instruction *, 4> NewInsts; in analyzeInstructionForSinking() local
668 NewInsts.push_back(I); in analyzeInstructionForSinking()
670 for (auto *I : NewInsts) in analyzeInstructionForSinking()
689 ModelledPHI NewPHI(NewInsts, ActivePreds); in analyzeInstructionForSinking()
717 Instruction *I0 = NewInsts[0]; in analyzeInstructionForSinking()
724 if (any_of(NewInsts, hasDifferentNumOperands)) in analyzeInstructionForSinking()
[all …]
DGVN.cpp1163 SmallVector<Instruction*, 8> NewInsts; in PerformLoadPRE() local
1180 Cur, Cur->getSinglePredecessor(), *DT, NewInsts); in PerformLoadPRE()
1191 NewInsts); in PerformLoadPRE()
1206 while (!NewInsts.empty()) { in PerformLoadPRE()
1212 NewInsts.pop_back_val()->eraseFromParent(); in PerformLoadPRE()
1223 LLVM_DEBUG(if (!NewInsts.empty()) dbgs() in PerformLoadPRE()
1224 << "INSERTED " << NewInsts.size() << " INSTS: " << *NewInsts.back() in PerformLoadPRE()
1228 for (Instruction *I : NewInsts) { in PerformLoadPRE()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DPHITransAddr.h93 SmallVectorImpl<Instruction *> &NewInsts);
113 SmallVectorImpl<Instruction *> &NewInsts);
/external/llvm-project/llvm/include/llvm/Analysis/
DPHITransAddr.h93 SmallVectorImpl<Instruction *> &NewInsts);
113 SmallVectorImpl<Instruction *> &NewInsts);
/external/llvm/include/llvm/Analysis/
DPHITransAddr.h94 SmallVectorImpl<Instruction *> &NewInsts);
114 SmallVectorImpl<Instruction *> &NewInsts);
/external/llvm-project/llvm/lib/CodeGen/
DTypePromotion.cpp116 SmallPtrSet<Value*, 8> NewInsts; member in __anon80acd2140111::IRPromoter
470 NewInsts.insert(NewInst); in PrepareWrappingAdds()
476 for (auto *I : NewInsts) in PrepareWrappingAdds()
496 NewInsts.insert(I); in ExtendSources()
562 if ((!Promoted.count(V) && !NewInsts.count(V)) || Sources.count(V)) in TruncateSinks()
570 NewInsts.insert(Trunc); in TruncateSinks()
636 if (NewInsts.count(Src) && isa<TruncInst>(Src) && in Cleanup()
671 NewInsts.insert(I); in ConvertTruncs()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTypePromotion.cpp115 SmallPtrSet<Value*, 8> NewInsts; member in __anon25c2b6080111::IRPromoter
468 NewInsts.insert(NewInst); in PrepareWrappingAdds()
474 for (auto *I : NewInsts) in PrepareWrappingAdds()
494 NewInsts.insert(I); in ExtendSources()
560 if ((!Promoted.count(V) && !NewInsts.count(V)) || Sources.count(V)) in TruncateSinks()
568 NewInsts.insert(Trunc); in TruncateSinks()
634 if (NewInsts.count(Src) && isa<TruncInst>(Src) && in Cleanup()
669 NewInsts.insert(I); in ConvertTruncs()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp745 DenseMap<Value *, Value *> NewInsts; in rewriteGEPAsOffset() local
746 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset()
755 NewInsts[PHI] = PHINode::Create(IndexType, PHI->getNumIncomingValues(), in rewriteGEPAsOffset()
763 if (NewInsts.find(Val) != NewInsts.end()) in rewriteGEPAsOffset()
767 NewInsts[CI] = NewInsts[CI->getOperand(0)]; in rewriteGEPAsOffset()
771 Value *Index = NewInsts[GEP->getOperand(1)] ? NewInsts[GEP->getOperand(1)] in rewriteGEPAsOffset()
777 NewInsts[GEP->getOperand(0)]->getType()->getScalarSizeInBits()) { in rewriteGEPAsOffset()
779 Index, NewInsts[GEP->getOperand(0)]->getType(), in rewriteGEPAsOffset()
783 auto *Op = NewInsts[GEP->getOperand(0)]; in rewriteGEPAsOffset()
785 NewInsts[GEP] = Index; in rewriteGEPAsOffset()
[all …]
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp1500 SmallVector<Instruction*, 8> NewInsts; in PerformLoadPRE() local
1513 *DT, NewInsts); in PerformLoadPRE()
1528 while (!NewInsts.empty()) { in PerformLoadPRE()
1529 Instruction *I = NewInsts.pop_back_val(); in PerformLoadPRE()
1542 DEBUG(if (!NewInsts.empty()) in PerformLoadPRE()
1543 dbgs() << "INSERTED " << NewInsts.size() << " INSTS: " in PerformLoadPRE()
1544 << *NewInsts.back() << '\n'); in PerformLoadPRE()
1547 for (Instruction *I : NewInsts) { in PerformLoadPRE()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp658 DenseMap<Value *, Value *> NewInsts; in rewriteGEPAsOffset() local
659 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset()
668 NewInsts[PHI] = PHINode::Create(IndexType, PHI->getNumIncomingValues(), in rewriteGEPAsOffset()
676 if (NewInsts.find(Val) != NewInsts.end()) in rewriteGEPAsOffset()
682 Value *V = NewInsts[CI->getOperand(0)]; in rewriteGEPAsOffset()
683 NewInsts[CI] = V; in rewriteGEPAsOffset()
687 Value *Index = NewInsts[GEP->getOperand(1)] ? NewInsts[GEP->getOperand(1)] in rewriteGEPAsOffset()
693 NewInsts[GEP->getOperand(0)]->getType()->getScalarSizeInBits()) { in rewriteGEPAsOffset()
695 Index, NewInsts[GEP->getOperand(0)]->getType(), in rewriteGEPAsOffset()
699 auto *Op = NewInsts[GEP->getOperand(0)]; in rewriteGEPAsOffset()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp656 DenseMap<Value *, Value *> NewInsts; in rewriteGEPAsOffset() local
657 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset()
666 NewInsts[PHI] = PHINode::Create(IndexType, PHI->getNumIncomingValues(), in rewriteGEPAsOffset()
674 if (NewInsts.find(Val) != NewInsts.end()) in rewriteGEPAsOffset()
680 Value *V = NewInsts[CI->getOperand(0)]; in rewriteGEPAsOffset()
681 NewInsts[CI] = V; in rewriteGEPAsOffset()
685 Value *Index = NewInsts[GEP->getOperand(1)] ? NewInsts[GEP->getOperand(1)] in rewriteGEPAsOffset()
691 NewInsts[GEP->getOperand(0)]->getType()->getScalarSizeInBits()) { in rewriteGEPAsOffset()
693 Index, NewInsts[GEP->getOperand(0)]->getType(), in rewriteGEPAsOffset()
697 auto *Op = NewInsts[GEP->getOperand(0)]; in rewriteGEPAsOffset()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp2479 SmallVector<MachineInstrBuilder, 4> NewInsts; in fewerElementsVectorMultiEltType() local
2502 NewInsts.push_back(MIRBuilder.buildInstrNoInsert(MI.getOpcode()) in fewerElementsVectorMultiEltType()
2510 NewInsts.push_back(MIRBuilder.buildInstrNoInsert(MI.getOpcode()) in fewerElementsVectorMultiEltType()
2516 assert(NewInsts.size() == PartRegs.size() + LeftoverRegs.size()); in fewerElementsVectorMultiEltType()
2523 NewInsts[InstCount++].addUse(PartRegs[J]); in fewerElementsVectorMultiEltType()
2525 NewInsts[InstCount++].addUse(LeftoverRegs[J]); in fewerElementsVectorMultiEltType()
2533 for (auto &MIB : NewInsts) in fewerElementsVectorMultiEltType()
2747 SmallVector<MachineInstrBuilder, 4> NewInsts; in fewerElementsVectorPhi() local
2755 NewInsts.push_back(MIRBuilder.buildInstr(TargetOpcode::G_PHI) in fewerElementsVectorPhi()
2787 MachineInstrBuilder MIB = NewInsts[J]; in fewerElementsVectorPhi()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp3253 SmallVector<MachineInstrBuilder, 4> NewInsts; in fewerElementsVectorMultiEltType() local
3275 NewInsts.push_back(MIRBuilder.buildInstrNoInsert(MI.getOpcode()) in fewerElementsVectorMultiEltType()
3283 NewInsts.push_back(MIRBuilder.buildInstrNoInsert(MI.getOpcode()) in fewerElementsVectorMultiEltType()
3289 assert(NewInsts.size() == PartRegs.size() + LeftoverRegs.size()); in fewerElementsVectorMultiEltType()
3296 NewInsts[InstCount++].addUse(PartRegs[J]); in fewerElementsVectorMultiEltType()
3298 NewInsts[InstCount++].addUse(LeftoverRegs[J]); in fewerElementsVectorMultiEltType()
3306 for (auto &MIB : NewInsts) in fewerElementsVectorMultiEltType()
3519 SmallVector<MachineInstrBuilder, 4> NewInsts; in fewerElementsVectorPhi() local
3527 NewInsts.push_back(MIRBuilder.buildInstr(TargetOpcode::G_PHI) in fewerElementsVectorPhi()
3559 MachineInstrBuilder MIB = NewInsts[J]; in fewerElementsVectorPhi()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURegisterBankInfo.cpp47 SmallVector<MachineInstr *, 4> NewInsts; member in __anon9f7023e90111::ApplyRegBankMapping
55 for (MachineInstr *MI : NewInsts) in ~ApplyRegBankMapping()
126 NewInsts.push_back(&MI); in createdInstr()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPURegisterBankInfo.cpp106 SmallVector<MachineInstr *, 4> NewInsts; member in __anonbbbc86750111::ApplyRegBankMapping
114 for (MachineInstr *MI : NewInsts) in ~ApplyRegBankMapping()
186 NewInsts.push_back(&MI); in createdInstr()