reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Instruction.h
   97   SymbolTableList<Instruction>::iterator eraseFromParent();

References

include/llvm/Transforms/Utils/SimplifyLibCalls.h
  121   static void eraseFromParentDefault(Instruction *I) { I->eraseFromParent(); }
lib/Analysis/InstructionSimplify.cpp
 5438       I->eraseFromParent();
 5470       I->eraseFromParent();
lib/Analysis/MemoryBuiltins.cpp
  856       I->eraseFromParent();
 1004       OffsetPHI->eraseFromParent();
 1007       SizePHI->eraseFromParent();
 1019     SizePHI->eraseFromParent();
 1025     OffsetPHI->eraseFromParent();
lib/Analysis/PHITransAddr.cpp
  354     NewInsts.pop_back_val()->eraseFromParent();
lib/Analysis/ValueTracking.cpp
 3313           Del->eraseFromParent();
lib/CodeGen/AtomicExpandPass.cpp
  392   LI->eraseFromParent();
  425   LI->eraseFromParent();
  446   LI->eraseFromParent();
  476   SI->eraseFromParent();
  491   SI->eraseFromParent();
  771   AI->eraseFromParent();
  805   AI->eraseFromParent();
  864   std::prev(BB->end())->eraseFromParent();
  932   CI->eraseFromParent();
  943   I->eraseFromParent();
  970   AI->eraseFromParent();
  999   CI->eraseFromParent();
 1028   std::prev(BB->end())->eraseFromParent();
 1087   CI->eraseFromParent();
 1185   std::prev(BB->end())->eraseFromParent();
 1300     EV->eraseFromParent();
 1312   CI->eraseFromParent();
 1375   std::prev(BB->end())->eraseFromParent();
 1442   AI->eraseFromParent();
 1806   I->eraseFromParent();
lib/CodeGen/CodeGenPrepare.cpp
 1019     ToReplace->eraseFromParent();
 1128     CI->eraseFromParent();
 1221   BO->eraseFromParent();
 1222   Cmp->eraseFromParent();
 1404     Cmp->eraseFromParent();
 1497   AndI->eraseFromParent();
 1688     ShiftI->eraseFromParent();
 1755   StartBlock->getTerminator()->eraseFromParent();
 1862         II->eraseFromParent();
 1903       II->eraseFromParent();
 1935     CI->eraseFromParent();
 2427         IVal->eraseFromParent();
 2453         IVal->eraseFromParent();
 2479         IVal->eraseFromParent();
 3018           PI->eraseFromParent();
 3039     From->eraseFromParent();
 3057       I->eraseFromParent();
 3062       I->eraseFromParent();
 4966           I->eraseFromParent();
 5386       GEP->eraseFromParent();
 5819       And->eraseFromParent();
 5927   Shift->eraseFromParent();
 6009   StartBlock->getTerminator()->eraseFromParent();
 6090     SI->eraseFromParent();
 6161     SVI->eraseFromParent();
 6217       I->eraseFromParent();
 6753   SI.eraseFromParent();
 6935       P->eraseFromParent();
 7032       GEPI->eraseFromParent();
 7229     LogicOp->eraseFromParent();
lib/CodeGen/DwarfEHPrepare.cpp
  125   RI->eraseFromParent();
  129       SelIVI->eraseFromParent();
  131       ExcIVI->eraseFromParent();
  133       SelLoad->eraseFromParent();
  173       RI->eraseFromParent();
lib/CodeGen/ExpandMemCmp.cpp
  772   CI->eraseFromParent();
lib/CodeGen/ExpandReductions.cpp
  131     II->eraseFromParent();
lib/CodeGen/GCRootLowering.cpp
  210         CI->eraseFromParent();
  219         CI->eraseFromParent();
lib/CodeGen/IndirectBrExpandPass.cpp
   99         IBr->eraseFromParent();
  162       IBr->eraseFromParent();
  190     IndirectBrs[0]->eraseFromParent();
  205       IBr->eraseFromParent();
lib/CodeGen/InterleavedAccessPass.cpp
  411     Extract->eraseFromParent();
  469     I->eraseFromParent();
lib/CodeGen/IntrinsicLowering.cpp
  485   CI->eraseFromParent();
  507   CI->eraseFromParent();
lib/CodeGen/PreISelIntrinsicLowering.cpp
   52     CI->eraseFromParent();
   90     CI->eraseFromParent();
lib/CodeGen/SafeStack.cpp
  560     StackGuardSlot->eraseFromParent();
  620     AI->eraseFromParent();
  680     AI->eraseFromParent();
  696         II->eraseFromParent();
  702         II->eraseFromParent();
lib/CodeGen/SafeStackColoring.cpp
   59     I->eraseFromParent();
   62       Op->eraseFromParent();
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  148     CI->eraseFromParent();
  172     CI->eraseFromParent();
  221     OldBr->eraseFromParent();
  233   CI->eraseFromParent();
  284     CI->eraseFromParent();
  304     CI->eraseFromParent();
  352     OldBr->eraseFromParent();
  355   CI->eraseFromParent();
  422     CI->eraseFromParent();
  471     OldBr->eraseFromParent();
  482   CI->eraseFromParent();
  544     CI->eraseFromParent();
  590     OldBr->eraseFromParent();
  593   CI->eraseFromParent();
  633     CI->eraseFromParent();
  686     OldBr->eraseFromParent();
  706   CI->eraseFromParent();
  741     CI->eraseFromParent();
  792     OldBr->eraseFromParent();
  804   CI->eraseFromParent();
lib/CodeGen/ShadowStackGCLowering.cpp
  366     Roots[I].first->eraseFromParent();
  367     Roots[I].second->eraseFromParent();
lib/CodeGen/SjLjEHPrepare.cpp
  150       EVI->eraseFromParent();
  365           II->eraseFromParent();
lib/CodeGen/StackProtector.cpp
  494       BB->getTerminator()->eraseFromParent();
lib/CodeGen/WasmEHPrepare.cpp
  301   GetExnCI->eraseFromParent();
  309       GetSelectorCI->eraseFromParent();
  347   GetSelectorCI->eraseFromParent();
lib/CodeGen/WinEHPrepare.cpp
  718     PN->eraseFromParent();
lib/FuzzMutate/IRMutator.cpp
  178     Inst.eraseFromParent();
  198   Inst.eraseFromParent();
lib/FuzzMutate/Operations.cpp
  153       Block->getTerminator()->eraseFromParent();
lib/FuzzMutate/RandomIRBuilder.cpp
   63       NewLoad->eraseFromParent();
lib/IR/AutoUpgrade.cpp
 1690       CI->eraseFromParent();
 1715       CI->eraseFromParent();
 1732       CI->eraseFromParent();
 1748       CI->eraseFromParent();
 1758       CI->eraseFromParent();
 1769       CI->eraseFromParent();
 3480     CI->eraseFromParent();
 3581     CI->eraseFromParent();
 3647     CI->eraseFromParent();
 3722   CI->eraseFromParent();
 3920       CI->eraseFromParent();
lib/IR/BasicBlock.cpp
  372           PN->eraseFromParent();
lib/IR/Core.cpp
 2732   unwrap<Instruction>(Inst)->eraseFromParent();
lib/IR/DebugInfo.cpp
  325         I.eraseFromParent();
  596         cast<Instruction>(DbgVal->user_back())->eraseFromParent();
lib/IR/Instructions.cpp
  136     eraseFromParent();
 3976   return SI.eraseFromParent();
lib/Target/AArch64/AArch64StackTagging.cpp
  217       R.Inst->eraseFromParent();
  491   Info.AI->eraseFromParent();
  662           End->eraseFromParent();
  675         II->eraseFromParent();
  677         II->eraseFromParent();
  690     I->eraseFromParent();
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  657   I.eraseFromParent();
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  325   I.eraseFromParent();
  352   I.eraseFromParent();
  381   I.eraseFromParent();
  407   I.eraseFromParent();
  521   I.eraseFromParent();
  604     FDiv.eraseFromParent();
  922       I.eraseFromParent();
  971     I.eraseFromParent();
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  152     CI->eraseFromParent();
  633   CI->eraseFromParent();
 1304           LI->eraseFromParent();
 1369     UI->eraseFromParent();
 1370     CI->eraseFromParent();
 1375     UI->eraseFromParent();
 1376     CI->eraseFromParent();
 1400   CI->eraseFromParent();
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
   80         Memcpy->eraseFromParent();
   90         Memmove->eraseFromParent();
  100         Memset->eraseFromParent();
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  559     CI->eraseFromParent();
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  436       Inst->eraseFromParent();
  453       Inst->eraseFromParent();
  827   I.eraseFromParent();
  881       Intr->eraseFromParent();
  888       Intr->eraseFromParent();
  896       Intr->eraseFromParent();
  904       Intr->eraseFromParent();
  911       Intr->eraseFromParent();
  928       Intr->eraseFromParent();
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  339         Store.second->eraseFromParent();
  428       RI->eraseFromParent();
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  640     II->eraseFromParent();
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  148     BB->getTerminator()->eraseFromParent();
  196         BI->eraseFromParent(); // Delete the unconditional branch.
  205         BB->getTerminator()->eraseFromParent();
  223         BB->getTerminator()->eraseFromParent();
  235       UnreachableBlock->getTerminator()->eraseFromParent();
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  262       InstsToErase[i]->eraseFromParent();
lib/Target/ARM/ARMCodeGenPrepare.cpp
  698     I->eraseFromParent();
lib/Target/ARM/MVETailPredication.cpp
  436     I->eraseFromParent();
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  298     Call->eraseFromParent();
  339     Call->eraseFromParent();
  873     Call->eraseFromParent();
  905   Call->eraseFromParent();
lib/Target/Hexagon/HexagonCommonGEP.cpp
 1266         In->eraseFromParent();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1032     Z->eraseFromParent();
 1040     T->eraseFromParent();
 1903   PV.Res->eraseFromParent();
 2225     OldT->eraseFromParent();
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   86             Use->eraseFromParent();
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
   87     InstrToDelete[i]->eraseFromParent();
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
  121     SI->eraseFromParent();
  122     LI->eraseFromParent();
  134     MemCall->eraseFromParent();
lib/Target/NVPTX/NVVMReflect.cpp
  177     I->eraseFromParent();
lib/Target/SystemZ/SystemZTDC.cpp
  367     I->eraseFromParent();
  378       I->eraseFromParent();
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  868     I->eraseFromParent();
 1050     I->eraseFromParent();
lib/Target/X86/X86ISelLowering.cpp
26585   AI->eraseFromParent();
lib/Target/X86/X86WinEHState.cpp
  511   Inst->eraseFromParent();
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  377   CurrentTruncInst->eraseFromParent();
  383       I->first->eraseFromParent();
lib/Transforms/CFGuard/CFGuard.cpp
  223   CB->eraseFromParent();
lib/Transforms/Coroutines/CoroCleanup.cpp
   84       II->eraseFromParent();
lib/Transforms/Coroutines/CoroEarly.cpp
   83   Intrin->eraseFromParent();
  105   II->eraseFromParent();
  140   II->eraseFromParent();
lib/Transforms/Coroutines/CoroElide.cpp
  122     CA->eraseFromParent();
  136     CB->eraseFromParent();
lib/Transforms/Coroutines/CoroFrame.cpp
  555   CurrentBlock->getTerminator()->eraseFromParent();
  735       PN->eraseFromParent();
  923     LandingPad->eraseFromParent();
  982       PN->eraseFromParent();
 1439     I->eraseFromParent();
lib/Transforms/Coroutines/CoroInstr.h
  136       Inst->eraseFromParent();
lib/Transforms/Coroutines/CoroSplit.cpp
  217   BB->getTerminator()->eraseFromParent();
  244     CleanupRet->getParent()->getTerminator()->eraseFromParent();
  258   End->eraseFromParent();
  314     Save->eraseFromParent();
  389     OldSwitchBB->getTerminator()->eraseFromParent();
  442     EVI->eraseFromParent();
  484     MappedCS->eraseFromParent();
  546     MappedOp->eraseFromParent();
  568   Entry->getTerminator()->eraseFromParent();
  578   BranchToEntry->eraseFromParent();
  803     CS->eraseFromParent();
  986       AllocInst->eraseFromParent();
 1000   CoroBegin->eraseFromParent();
 1109   Suspend->eraseFromParent();
 1110   Save->eraseFromParent();
 1119   CallInstr->eraseFromParent();
 1124       I->eraseFromParent();
 1128     SubFn->eraseFromParent();
 1474     Cast->eraseFromParent();
 1480   Prepare->eraseFromParent();
 1486     Cast->eraseFromParent();
lib/Transforms/Coroutines/Coroutines.cpp
  181     CF->eraseFromParent();
  331       CF->eraseFromParent();
  338       CS->eraseFromParent();
  340         CoroSave->eraseFromParent();
  474     CF->eraseFromParent();
  485     CoroSave->eraseFromParent();
lib/Transforms/IPO/ArgumentPromotion.cpp
  358     Call->eraseFromParent();
  434         LI->eraseFromParent();
  470           L->eraseFromParent();
  472         GEP->eraseFromParent();
  683         GEP->eraseFromParent();
lib/Transforms/IPO/Attributor.cpp
 4606       I->eraseFromParent();
lib/Transforms/IPO/DeadArgumentElimination.cpp
  223     Call->eraseFromParent();
 1004     Call->eraseFromParent();
lib/Transforms/IPO/GlobalOpt.cpp
  214         SI->eraseFromParent();
  222         MSI->eraseFromParent();
  231         MTI->eraseFromParent();
  254       Dead[i].second->eraseFromParent();
  262         I->eraseFromParent();
  265       I->eraseFromParent();
  295         LI->eraseFromParent();
  300       SI->eraseFromParent();
  339         GEP->eraseFromParent();
  344         MI->eraseFromParent();
  589       GEPI->eraseFromParent();
  720         CI->eraseFromParent();
  738         GEPI->eraseFromParent();
  766         LI->eraseFromParent();
  827           I->eraseFromParent();
  866         BCI->eraseFromParent();
  896       SI->eraseFromParent();
  935       ICI->eraseFromParent();
  937     LI->eraseFromParent();
  943       cast<StoreInst>(InitBool->user_back())->eraseFromParent();
  950   CI->eraseFromParent();
 1020         SI->eraseFromParent();
 1030       U->eraseFromParent();
 1041             GEPI->eraseFromParent();
 1212     SCI->eraseFromParent();
 1234     GEPI->eraseFromParent();
 1269     Load->eraseFromParent();
 1358   OrigBB->getTerminator()->eraseFromParent();
 1388   CI->eraseFromParent();
 1420     SI->eraseFromParent();
 1455       PN->eraseFromParent();
 1457       LI->eraseFromParent();
 1550       CI->eraseFromParent();
 1750     UI->eraseFromParent();
 2901     CI->eraseFromParent();
lib/Transforms/IPO/IPConstantPropagation.cpp
  270           Ins->eraseFromParent();
lib/Transforms/IPO/Inliner.cpp
  245       AI->eraseFromParent();
  677         Instr->eraseFromParent();
lib/Transforms/IPO/LowerTypeTests.cpp
 1039   CI->eraseFromParent();
 1163       CI->eraseFromParent();
lib/Transforms/IPO/MergeFunctions.cpp
  521     I->eraseFromParent();
  694     GEntryBlock->getTerminator()->eraseFromParent();
lib/Transforms/IPO/PartialInlining.cpp
 1095     DP->eraseFromParent();
lib/Transforms/IPO/StripSymbols.cpp
  262       CI->eraseFromParent();
lib/Transforms/IPO/WholeProgramDevirt.cpp
  342     CS->eraseFromParent();
 1145       CS->eraseFromParent();
 1590       Assume->eraseFromParent();
 1594       CI->eraseFromParent();
 1636       LoadedPtr->eraseFromParent();
 1645       Pred->eraseFromParent();
 1674     CI->eraseFromParent();
 1757       U.first->eraseFromParent();
lib/Transforms/InstCombine/InstCombineInternal.h
  718     I.eraseFromParent();
lib/Transforms/InstCombine/InstructionCombining.cpp
 3397         Inst->eraseFromParent();
 3411             Inst->eraseFromParent();
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1316   MI->eraseFromParent();
 3239   for (auto AI : AllocaVec) AI->eraseFromParent();
 3319   AI->eraseFromParent();
lib/Transforms/Instrumentation/BoundsChecking.cpp
  128   OldBB->getTerminator()->eraseFromParent();
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
 1827   OldBR->eraseFromParent();
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1665         CI->eraseFromParent();
 1761     CS.getInstruction()->eraseFromParent();
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  716   MI->eraseFromParent();
 1220       P.first->eraseFromParent();
lib/Transforms/Instrumentation/InstrProfiling.cpp
  632   Ind->eraseFromParent();
  654   Inc->eraseFromParent();
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2412     I.eraseFromParent();
 2426     I.eraseFromParent();
 2437     I.eraseFromParent();
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  354   BB->getTerminator()->eraseFromParent();
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  608     I->eraseFromParent();
  615     I->eraseFromParent();
  708     I->eraseFromParent();
lib/Transforms/ObjCARC/ObjCARC.h
   65   CI->eraseFromParent();
lib/Transforms/ObjCARC/ObjCARCAPElim.cpp
  111         Inst->eraseFromParent();
  112         Push->eraseFromParent();
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  438   Store->eraseFromParent();
  439   Release->eraseFromParent();
  442     Load->eraseFromParent();
  517       CI->eraseFromParent();
  535     Inst->eraseFromParent();
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  771           Inst->eraseFromParent();
  813         CI->eraseFromParent();
  836         CI->eraseFromParent();
 1900       Inst->eraseFromParent();
 1935           Call->eraseFromParent();
 1964           Call->eraseFromParent();
 2030         UserInst->eraseFromParent();
 2032       Alloca->eraseFromParent();
lib/Transforms/Scalar/ADCE.cpp
  555     I->eraseFromParent();
  670   PredTerm->eraseFromParent();
lib/Transforms/Scalar/BDCE.cpp
  137     I->eraseFromParent();
lib/Transforms/Scalar/CallSiteSplitting.cpp
  371       Splits[i]->getTerminator()->eraseFromParent();
  410     CurrentI->eraseFromParent();
lib/Transforms/Scalar/ConstantHoisting.cpp
  766       Mat->eraseFromParent();
  815       ConstExprInst->eraseFromParent();
  817         Mat->eraseFromParent();
  921       I.first->eraseFromParent();
lib/Transforms/Scalar/ConstantProp.cpp
  109             I->eraseFromParent();
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  141   S->eraseFromParent();
  206   P->eraseFromParent();
  268     P->eraseFromParent();
  325   Cmp->eraseFromParent();
  510   WO->eraseFromParent();
  528   SI->eraseFromParent();
  655   Instr->eraseFromParent();
  668   SDI->eraseFromParent();
  691   SDI->eraseFromParent();
  714   SDI->eraseFromParent();
  735   SDI->eraseFromParent();
  800   BinOp->eraseFromParent();
lib/Transforms/Scalar/DCE.cpp
   60           Inst->eraseFromParent();
  109     I->eraseFromParent();
lib/Transforms/Scalar/DeadStoreElimination.cpp
  142       NewIter = DeadInst->eraseFromParent();
  144       DeadInst->eraseFromParent();
lib/Transforms/Scalar/DivRemPairs.cpp
  216       OrigRemInst->eraseFromParent();
  311       OrigRemInst->eraseFromParent();
lib/Transforms/Scalar/EarlyCSE.cpp
  912       Inst->eraseFromParent();
  977               Inst->eraseFromParent();
 1012           Inst->eraseFromParent();
 1037         Inst->eraseFromParent();
 1097           Inst->eraseFromParent();
 1140         Inst->eraseFromParent();
 1193         Inst->eraseFromParent();
 1228               LastStore->eraseFromParent();
lib/Transforms/Scalar/Float2Int.cpp
  513     I.first->eraseFromParent();
lib/Transforms/Scalar/GVN.cpp
 1210       NewInsts.pop_back_val()->eraseFromParent();
 2182       I->eraseFromParent();
 2414   CurInst->eraseFromParent();
lib/Transforms/Scalar/GVNHoist.cpp
  930         I->eraseFromParent();
lib/Transforms/Scalar/GVNSink.cpp
  624       PN->eraseFromParent();
  880       I->eraseFromParent();
lib/Transforms/Scalar/GuardWidening.cpp
  121   GuardInst->eraseFromParent();
lib/Transforms/Scalar/IndVarSimplify.cpp
  730       PN->eraseFromParent();
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1283   PreheaderJump->eraseFromParent();
lib/Transforms/Scalar/InferAddressSpaces.cpp
  827   MI->eraseFromParent();
lib/Transforms/Scalar/JumpThreading.cpp
  470     Cond->eraseFromParent();
 1086         I->eraseFromParent();
 1110     BBTerm->eraseFromParent();
 1165         CondBr->eraseFromParent();
 1167           CondCmp->eraseFromParent();
 1270       BI->eraseFromParent();
 1338     LoadI->eraseFromParent();
 1522   LoadI->eraseFromParent();
 1695       Term->eraseFromParent();
 1702           CondInst->eraseFromParent();
 1883       BO->eraseFromParent();
 1887       BO->eraseFromParent();
 2412   OldPredBranch->eraseFromParent();
 2448   SI->eraseFromParent();
 2615     SI->eraseFromParent();
 2753     Inst->eraseFromParent();
lib/Transforms/Scalar/LICM.cpp
 1439   I.eraseFromParent();
lib/Transforms/Scalar/LoopDistribute.cpp
  235       Inst->eraseFromParent();
lib/Transforms/Scalar/LoopFuse.cpp
 1209     FC1.Preheader->getTerminator()->eraseFromParent();
 1221         PHI->eraseFromParent();
 1375     FC1.GuardBranch->eraseFromParent();
 1445     FC0.ExitBlock->getTerminator()->eraseFromParent();
 1451     FC1.Preheader->getTerminator()->eraseFromParent();
 1463         PHI->eraseFromParent();
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  343   I->eraseFromParent();
 2267   PreheaderBB->getTerminator()->eraseFromParent();
 2442   PhonySuccessorBB->getTerminator()->eraseFromParent();
 2557     OldTerminator->eraseFromParent();
lib/Transforms/Scalar/LoopInterchange.cpp
 1372     P.eraseFromParent();
lib/Transforms/Scalar/LoopRerollPass.cpp
 1440       J++->eraseFromParent();
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  361     Preheader->getTerminator()->eraseFromParent();
  372         PN->eraseFromParent();
  514       Term->eraseFromParent();
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  984     I->eraseFromParent();
 2179     ShadowUse->eraseFromParent();
 2349   Cond->eraseFromParent();
 2350   Sel->eraseFromParent();
 2352     Cmp->eraseFromParent();
lib/Transforms/Scalar/LoopUnswitch.cpp
 1434     I->eraseFromParent();
 1557     NewSISucc->getTerminator()->eraseFromParent();
 1599       I->eraseFromParent();
lib/Transforms/Scalar/LowerAtomic.cpp
   38   CXI->eraseFromParent();
   98   RMWI->eraseFromParent();
  103   FI->eraseFromParent();
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   76       BI->eraseFromParent();
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  356         CI->eraseFromParent();
lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
   64     CI->eraseFromParent();
lib/Transforms/Scalar/LowerWidenableCondition.cpp
   61     CI->eraseFromParent();
lib/Transforms/Scalar/MakeGuardsExplicit.cpp
   76   Guard->eraseFromParent();
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  411       SI->eraseFromParent();
  606           SI->eraseFromParent();
  608           LI->eraseFromParent();
  655           SI->eraseFromParent();
  657           LI->eraseFromParent();
  695       SI->eraseFromParent();
  995   M->eraseFromParent();
 1063   MemSet->eraseFromParent();
 1145     M->eraseFromParent();
 1158         M->eraseFromParent();
 1192         M->eraseFromParent();
 1208       M->eraseFromParent();
 1218         M->eraseFromParent();
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  268   S0->eraseFromParent();
  269   S1->eraseFromParent();
  271   A0->eraseFromParent();
  273   A1->eraseFromParent();
lib/Transforms/Scalar/NewGVN.cpp
 3478     ToErase->eraseFromParent();
 3696     Inst.eraseFromParent();
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
   73   CurrBB.getTerminator()->eraseFromParent();
lib/Transforms/Scalar/Reassociate.cpp
 1901   I->eraseFromParent();
 1917   I->eraseFromParent();
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1388       RI->eraseFromParent();
 1391     OldI->eraseFromParent();
 2292     CI->eraseFromParent();
 2486     II->eraseFromParent();
lib/Transforms/Scalar/SCCP.cpp
 1849           Inst->eraseFromParent();
 2100             Inst->eraseFromParent();
 2155           InstBB->getTerminator()->eraseFromParent();
 2171               Inst->eraseFromParent();
 2225       SI->eraseFromParent();
lib/Transforms/Scalar/SROA.cpp
 1281     LI->eraseFromParent();
 1314   PN.eraseFromParent();
 1388     LI->eraseFromParent();
 1390   SI.eraseFromParent();
 1628           I->eraseFromParent();
 3385     LI.eraseFromParent();
 3430     SI.eraseFromParent();
 4405         OldDII->eraseFromParent();
 4440     AI.eraseFromParent();
 4520         OldDII->eraseFromParent();
 4534     I->eraseFromParent();
lib/Transforms/Scalar/Scalarizer.cpp
  326         I->eraseFromParent();
  378       Old->eraseFromParent();
  848     Op->eraseFromParent();
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  881   Variadic->eraseFromParent();
  927   Variadic->eraseFromParent();
 1109   GEP->eraseFromParent();
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  454   OldPH->getTerminator()->eraseFromParent();
  502       ParentBB->getTerminator()->eraseFromParent();
  673   OldPH->getTerminator()->eraseFromParent();
 1102   ClonedParentBB->getTerminator()->eraseFromParent();
 2037   SplitBB->getTerminator()->eraseFromParent();
 2129     ParentBB->getTerminator()->eraseFromParent();
lib/Transforms/Scalar/SimplifyCFGPass.cpp
  138     BB.getTerminator()->eraseFromParent();
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  717     OrigI->eraseFromParent();
  724     SpecPN->eraseFromParent();
lib/Transforms/Scalar/StructurizeCFG.cpp
  650         Phi->eraseFromParent();
  672   Term->eraseFromParent();
lib/Transforms/Scalar/TailRecursionElimination.cpp
  804       PN->eraseFromParent();
lib/Transforms/Utils/BasicBlockUtils.cpp
  152     PN->eraseFromParent();
  291           DVI->eraseFromParent();
  758     LPad->eraseFromParent();
  763     LPad->eraseFromParent();
  802   UncondBranch->eraseFromParent();
lib/Transforms/Utils/BreakCriticalEdges.cpp
  466       IndPHI->eraseFromParent();
lib/Transforms/Utils/BypassSlowDivision.cpp
  414     MainBB->getInstList().back().eraseFromParent();
  432     MainBB->getInstList().back().eraseFromParent();
  465       I->eraseFromParent();
lib/Transforms/Utils/CallPromotionUtils.cpp
  296     ThenTerm->eraseFromParent();
  297     ElseTerm->eraseFromParent();
lib/Transforms/Utils/CloneFunction.cpp
  594         PN->eraseFromParent();
  642       I->eraseFromParent();
  694     BI->eraseFromParent();
lib/Transforms/Utils/CodeExtractor.cpp
 1000       II->eraseFromParent();
 1296     TheSwitch->eraseFromParent();
 1302     TheSwitch->eraseFromParent();
 1307     TheSwitch->eraseFromParent();
 1580         Inst->eraseFromParent();
 1588       DVI->eraseFromParent();
lib/Transforms/Utils/DemoteRegToStack.cpp
   26     I.eraseFromParent();
  112     P->eraseFromParent();
  151   P->eraseFromParent();
lib/Transforms/Utils/GuardUtils.cpp
   62   DeoptBlockTerm->eraseFromParent();
lib/Transforms/Utils/InlineFunction.cpp
  214   RI->eraseFromParent();
  681         CRI->eraseFromParent();
  745       I->eraseFromParent();
 1784         I->eraseFromParent();
 1832         AI->eraseFromParent();
 1917           CI->eraseFromParent();
 2084         I->eraseFromParent();
 2144         RI->eraseFromParent();
 2151         DeoptCall->eraseFromParent();
 2194       RI->eraseFromParent();
 2196         OldCast->eraseFromParent();
 2249     TheCall->eraseFromParent();
 2252     Returns[0]->eraseFromParent();
 2341       RI->eraseFromParent();
 2372     Returns[0]->eraseFromParent();
 2381   TheCall->eraseFromParent();
 2413       PHI->eraseFromParent();
lib/Transforms/Utils/IntegerDivision.cpp
  231   SpecialCases->getTerminator()->eraseFromParent();
  396     Rem->eraseFromParent();
  414   Rem->eraseFromParent();
  455     Div->eraseFromParent();
  473   Div->eraseFromParent();
  524   Rem->eraseFromParent();
  572   Rem->eraseFromParent();
  621   Div->eraseFromParent();
  670   Div->eraseFromParent();
lib/Transforms/Utils/LCSSA.cpp
  270       PN->eraseFromParent();
lib/Transforms/Utils/Local.cpp
  133       BI->eraseFromParent();
  151       BI->eraseFromParent();
  256       SI->eraseFromParent();
  295       SI->eraseFromParent();
  325       IBI->eraseFromParent();
  339         BB->getTerminator()->eraseFromParent();
  485     I.eraseFromParent();
  568     I->eraseFromParent();
  589       I->eraseFromParent();
  679     PN->eraseFromParent();
  718   PredBB->getTerminator()->eraseFromParent();
 1034     BB->getTerminator()->eraseFromParent();
 1041       PN->eraseFromParent();
 1117       PN->eraseFromParent();
 1442     DDI->eraseFromParent();
 1554     DII->eraseFromParent();
 1586   DVI->eraseFromParent();
 1787         DII->eraseFromParent();
 1893     Inst->eraseFromParent();
 1969   II->eraseFromParent();
 2116           II->eraseFromParent();
 2206   TI->eraseFromParent();
 2255       TI->eraseFromParent();
 2588     DII->eraseFromParent();
 2621       II = I->eraseFromParent();
lib/Transforms/Utils/LoopRotationUtils.cpp
  394   LoopEntryBranch->eraseFromParent();
  486     PHBI->eraseFromParent();
lib/Transforms/Utils/LoopSimplify.cpp
  191       PN->eraseFromParent();
  599         PN->eraseFromParent();
lib/Transforms/Utils/LoopUnroll.cpp
  736       Term->eraseFromParent();
  820       Term->eraseFromParent();
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  487     SubTerm->eraseFromParent();
  500     Term->eraseFromParent();
  513     AftTerm->eraseFromParent();
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  165   InsertPt->eraseFromParent();
  280   InsertPt->eraseFromParent();
  369       LatchBR->eraseFromParent();
  756   PreHeaderBR->eraseFromParent();
lib/Transforms/Utils/LoopUtils.cpp
  560   OldBr->eraseFromParent();
  589   Preheader->getTerminator()->eraseFromParent();
lib/Transforms/Utils/LoopVersioning.cpp
  112   OrigTerm->eraseFromParent();
lib/Transforms/Utils/LowerMemIntrinsics.cpp
  213     PreLoopBB->getTerminator()->eraseFromParent();
  258     PreLoopBB->getTerminator()->eraseFromParent();
  345   ThenTerm->eraseFromParent();
  365   ElseTerm->eraseFromParent();
  389   OrigBB->getTerminator()->eraseFromParent();
lib/Transforms/Utils/LowerSwitch.cpp
  468     SI->eraseFromParent();
  580       SI->eraseFromParent();
lib/Transforms/Utils/PredicateInfo.cpp
  794     Inst->eraseFromParent();
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  332         Inst->eraseFromParent();
  335     I->eraseFromParent();
  405     LI->eraseFromParent();
  418     DII->eraseFromParent();
  421   Info.OnlyStore->eraseFromParent();
  424   AI->eraseFromParent();
  505     LI->eraseFromParent();
  517     SI->eraseFromParent();
  521   AI->eraseFromParent();
  525     DII->eraseFromParent();
  551       AI->eraseFromParent();
  667     A->eraseFromParent();
  673       DII->eraseFromParent();
  696         PN->eraseFromParent();
lib/Transforms/Utils/SSAUpdater.cpp
  172     InsertedPHI->eraseFromParent();
  486     User->eraseFromParent();
lib/Transforms/Utils/SimplifyCFG.cpp
  692   TI->eraseFromParent();
 1326       I2->eraseFromParent();
 1628     PN->eraseFromParent();
 1634       I->eraseFromParent();
 2142     I->eraseFromParent();
 2334       PN->eraseFromParent();
 2429     PN->eraseFromParent();
 2438   OldTI->eraseFromParent();
 2540       Inst->eraseFromParent();
 3101   QStore->eraseFromParent();
 3102   PStore->eraseFromParent();
 3623       ICI->eraseFromParent();
 3640     ICI->eraseFromParent();
 3664   ICI->eraseFromParent();
 3765     OldTI->eraseFromParent();
 3886     TrivialBB->getTerminator()->eraseFromParent();
 4083   SuccessorCleanupPad->eraseFromParent();
 4087   RI->eraseFromParent();
 4212     BBI->eraseFromParent();
 4229         TI->eraseFromParent();
 4291         CSI->eraseFromParent();
 4296       TI->eraseFromParent();
 4449   SI->eraseFromParent();
 4880   SI->eraseFromParent();
 5523   SI->eraseFromParent();
 5782         Inst.eraseFromParent();
 5793     BI->eraseFromParent();
 6032           BI->eraseFromParent();
lib/Transforms/Utils/SimplifyIndVar.cpp
  473     EVI->eraseFromParent();
  476     WO->eraseFromParent();
lib/Transforms/Utils/StripGCRelocates.cpp
   68     GCRel->eraseFromParent();
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  581       I->eraseFromParent();
 1227       I->eraseFromParent();
lib/Transforms/Vectorize/LoopVectorize.cpp
 2549   Latch->getTerminator()->eraseFromParent();
 3212       In->eraseFromParent();
 3389       cast<Instruction>(I)->eraseFromParent();
 3407         Inst->eraseFromParent();
 3586     cast<Instruction>(PhiPart)->eraseFromParent();
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2087     Pair.getFirst()->eraseFromParent();
lib/Transforms/Vectorize/VPlan.cpp
  147       PredBBTerminator->eraseFromParent();
  400   VectorHeaderBB->getTerminator()->eraseFromParent();
  439   LastBB->getTerminator()->eraseFromParent();
tools/bugpoint/CrashDebugger.cpp
  784           Inst->eraseFromParent();
tools/clang/lib/CodeGen/CGBlocks.cpp
 2098           cast<llvm::Instruction>(dstField.getPointer())->eraseFromParent();
tools/clang/lib/CodeGen/CGCall.cpp
 2581     bitcast->eraseFromParent();
 2663     I->eraseFromParent();
 2704   retainCall->eraseFromParent();
 2876         SI->eraseFromParent();
 3191     I.IsActiveIP->eraseFromParent();
tools/clang/lib/CodeGen/CGCleanup.cpp
  371     Br->eraseFromParent();
  537   Br->eraseFromParent();
  628       si->eraseFromParent();
  633       condition->eraseFromParent();
  839           NormalCleanupDestSlot->user_back()->eraseFromParent();
  840           NormalCleanupDestSlot->eraseFromParent();
tools/clang/lib/CodeGen/CGCoroutine.cpp
  461     InsertPt->eraseFromParent();
tools/clang/lib/CodeGen/CGExprAgg.cpp
 1337     CleanupDominator->eraseFromParent();
 1622           GEP->eraseFromParent();
 1634     cleanupDominator->eraseFromParent();
tools/clang/lib/CodeGen/CGExprCXX.cpp
 1253     CleanupDominator->eraseFromParent();
 1730     cleanupDominator->eraseFromParent();
tools/clang/lib/CodeGen/CGExprScalar.cpp
  409           ZI->eraseFromParent();
 3300    MulOp->eraseFromParent();
tools/clang/lib/CodeGen/CGObjCMac.cpp
 4697       Caught->eraseFromParent();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1621     Ptr->eraseFromParent();
tools/clang/lib/CodeGen/CGStmt.cpp
  461   BI->eraseFromParent();
tools/clang/lib/CodeGen/CGVTables.cpp
  223         T->eraseFromParent();
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  273       BI->eraseFromParent();
  387   Ptr->eraseFromParent();
  395       PN->eraseFromParent();
  415     I->first->eraseFromParent();
  459       RetAlloca->eraseFromParent();
 2042   protection.Inst->eraseFromParent();
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4348     callSite->eraseFromParent();
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  887   selector_load->eraseFromParent();
 1038   class_load->eraseFromParent();
 1134   alloc->eraseFromParent();
 1380     load_instruction->eraseFromParent();
 1413     ci->eraseFromParent();
 1502   guard_load->eraseFromParent();
 1506   guard_store->eraseFromParent();
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  204     call_inst->eraseFromParent();
tools/llvm-reduce/deltas/ReduceArguments.cpp
   76       I->eraseFromParent();
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   44   Term->eraseFromParent();
   69     SwInst.eraseFromParent();
tools/llvm-reduce/deltas/ReduceFunctions.cpp
   52     C->eraseFromParent();
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   49     Inst->eraseFromParent();
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   45     I->eraseFromParent();
tools/llvm-stress/llvm-stress.cpp
  723       Curr->getTerminator()->eraseFromParent();
tools/polly/lib/CodeGen/BlockGenerators.cpp
  411     NewInst->eraseFromParent();
 1563         BBCopyEnd->begin()->eraseFromParent();
 1575     BICopy->eraseFromParent();
tools/polly/lib/CodeGen/CodeGeneration.cpp
   81   OrigTerminator->eraseFromParent();
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  612   InsertBB->getTerminator()->eraseFromParent();
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  807   CondBB->getTerminator()->eraseFromParent();
 1293   CondBBTerminator->eraseFromParent();
tools/polly/lib/CodeGen/PerfMonitor.cpp
  177   ReturnFromFinal->eraseFromParent();
tools/polly/lib/CodeGen/Utils.cpp
  147   SplitBlock->getTerminator()->eraseFromParent();
unittests/Analysis/CGSCCPassManagerTest.cpp
 1170         H2F.begin()->begin()->eraseFromParent();
 1218         H2F.begin()->begin()->eraseFromParent();
unittests/Analysis/DomTreeUpdaterTest.cpp
  195   NewEntry->getTerminator()->eraseFromParent();
  272   BB0->getTerminator()->eraseFromParent();
  370   BB0->getTerminator()->eraseFromParent();
  404   BB0->getTerminator()->eraseFromParent();
  489   BB0->getTerminator()->eraseFromParent();
  573   NewEntry->getTerminator()->eraseFromParent();
  759   BB0->getTerminator()->eraseFromParent();
  779   BB0->getTerminator()->eraseFromParent();
unittests/Analysis/MemorySSATest.cpp
  737   KillStore->eraseFromParent();
  945   StoreA->eraseFromParent();
  994   StoreX1->eraseFromParent();
 1440   Entry->getTerminator()->eraseFromParent();
 1502   Entry->getTerminator()->eraseFromParent();
 1571   FBlock->getTerminator()->eraseFromParent();
unittests/Analysis/PhiValuesTest.cpp
  199   Phi2->eraseFromParent();
unittests/Analysis/ScalarEvolutionTest.cpp
  878   Br->eraseFromParent();
  879   Cond->eraseFromParent();
  966   Br->eraseFromParent();
  967   Cond->eraseFromParent();
  968   Load->eraseFromParent();
unittests/IR/CFGBuilder.cpp
   44     From->getTerminator()->eraseFromParent();
   65     SI->eraseFromParent();
unittests/IR/DominatorTreeTest.cpp
  240         BB1->getTerminator()->eraseFromParent();
  392         C->getTerminator()->eraseFromParent();
unittests/IR/IRBuilderTest.cpp
  339   BI->eraseFromParent();
unittests/IR/InstructionsTest.cpp
  301   Inst1->eraseFromParent();
  399   ICmp2->eraseFromParent();