llvm-project/llvm/lib/Transforms/Utils
Alina Sbirlea 4eb1a573fa [Utils] Cleanup similar cases to MergeBlockIntoPredecessor.
Summary:
There are two cases where a block is merged into its predecessor and the
MergeBlockIntoPredecessor API is not used. Update the API so it can be
reused in the other cases, in order to avoid code duplication.

Cleanup motivated by D68659.

Reviewers: chandlerc, sanjoy.google, george.burgess.iv

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68670

llvm-svn: 375050
2019-10-16 22:23:20 +00:00
..
ASanStackFrameLayout.cpp Use llvm::stable_sort 2019-04-23 14:51:27 +00:00
AddDiscriminators.cpp
BasicBlockUtils.cpp [Utils] Cleanup similar cases to MergeBlockIntoPredecessor. 2019-10-16 22:23:20 +00:00
BreakCriticalEdges.cpp [SanitizerCoverage] Avoid splitting critical edges when destination is a basic block containing unreachable 2019-03-12 18:20:25 +00:00
BuildLibCalls.cpp [FunctionAttrs] Added noalias for memccpy/mempcpy arguments 2019-09-30 19:43:48 +00:00
BypassSlowDivision.cpp [BypassSlowDivision][CodeGenPrepare] avoid crashing on unused code (PR43514) 2019-10-01 21:25:36 +00:00
CMakeLists.txt Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
CallPromotionUtils.cpp [PGO] Update ICP pass for recent byval type changes 2019-07-01 22:43:39 +00:00
CanonicalizeAliases.cpp
CloneFunction.cpp Fix for "DICompileUnit not listed in llvm.dbg.cu" verification error after ... 2019-08-28 21:27:50 +00:00
CloneModule.cpp Fix for "DICompileUnit not listed in llvm.dbg.cu" verification error after ... 2019-08-28 21:27:50 +00:00
CodeExtractor.cpp CodeExtractor: NFC: Use Range based loop 2019-10-16 01:50:21 +00:00
CtorUtils.cpp
DemoteRegToStack.cpp [opaque pointer types] Pass value type to LoadInst creation. 2019-02-01 20:44:24 +00:00
EntryExitInstrumenter.cpp Reland "[ARM] push LR before __gnu_mcount_nc" 2019-08-16 23:30:16 +00:00
EscapeEnumerator.cpp
Evaluator.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
FlattenCFG.cpp Handle successor's PHI node correctly when flattening CFG merges two if-regions 2019-09-26 15:20:17 +00:00
FunctionComparator.cpp IR: compare type attributes deeply when looking into functions. 2019-06-27 11:44:45 +00:00
FunctionImportUtils.cpp FunctionImportGlobalProcessing::processGlobalForThinLTO - silence static analyzer dyn_cast<FunctionSummary> null dereference warning. NFCI. 2019-09-27 15:49:19 +00:00
GlobalStatus.cpp
GuardUtils.cpp
ImportedFunctionsInliningStatistics.cpp [Instruction] Add hasMetadata(Kind) helper [NFC] 2019-09-04 17:28:48 +00:00
InlineFunction.cpp Delete dead stores 2019-07-12 14:58:15 +00:00
InstructionNamer.cpp
IntegerDivision.cpp
LCSSA.cpp [MemorySSA] LCSSA preserves MemorySSA. 2019-04-23 20:59:44 +00:00
LLVMBuild.txt
LibCallsShrinkWrap.cpp Change TargetLibraryInfo analysis passes to always require Function 2019-09-07 03:09:36 +00:00
Local.cpp [Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned) 2019-10-15 11:24:36 +00:00
LoopRotationUtils.cpp [Utils] Cleanup similar cases to MergeBlockIntoPredecessor. 2019-10-16 22:23:20 +00:00
LoopSimplify.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
LoopUnroll.cpp [LoopUnroll] Use Lazy strategy for DTU used for MergeBlockIntoPredecessor. 2019-08-29 04:26:29 +00:00
LoopUnrollAndJam.cpp [LoopUnrollAndJam] Use Lazy strategy for DTU. 2019-08-29 17:47:58 +00:00
LoopUnrollPeel.cpp [Loop Peeling] Fix silly bug in metadata update. 2019-08-22 10:06:46 +00:00
LoopUnrollRuntime.cpp [LoopInfo] Introduce getUniqueNonLatchExitBlocks utility function 2019-07-15 05:51:10 +00:00
LoopUtils.cpp [MemorySSA] Re-enable MemorySSA use. 2019-09-04 19:16:04 +00:00
LoopVersioning.cpp [BasicBlockUtils] Add optional BBName argument, in line with BB:splitBasicBlock 2019-09-13 08:03:32 +00:00
LowerInvoke.cpp
LowerMemIntrinsics.cpp [opaque pointer types] Pass value type to GetElementPtr creation. 2019-02-01 20:44:47 +00:00
LowerSwitch.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
Mem2Reg.cpp
MetaRenamer.cpp Change TargetLibraryInfo analysis passes to always require Function 2019-09-07 03:09:36 +00:00
MisExpect.cpp Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
ModuleUtils.cpp ModuleUtils - silence static analyzer dyn_cast<> null dereference warning. NFCI. 2019-09-27 16:55:49 +00:00
NameAnonGlobals.cpp
PredicateInfo.cpp Second attempt to add iterator_range::empty() 2019-10-07 18:14:24 +00:00
PromoteMemoryToRegister.cpp [Mem2Reg] Delete unused PointerAllocaValues 2019-04-14 07:28:29 +00:00
SSAUpdater.cpp [LICM/MSSA] Add promotion to scalars by building an AliasSetTracker with MemorySSA. 2019-02-06 20:25:17 +00:00
SSAUpdaterBulk.cpp
SanitizerStats.cpp
SimplifyCFG.cpp [Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned) 2019-10-15 11:24:36 +00:00
SimplifyIndVar.cpp [SimplifyIndVar] Simplify non-overflowing saturating add/sub 2019-06-15 08:48:52 +00:00
SimplifyLibCalls.cpp [InstCombine] Add test case for PR43617 (NFC) 2019-10-10 21:29:10 +00:00
SizeOpts.cpp [PGO] Profile guided code size optimization. 2019-04-15 16:49:00 +00:00
SplitModule.cpp
StripGCRelocates.cpp
StripNonLineTableDebugInfo.cpp
SymbolRewriter.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
UnifyFunctionExitNodes.cpp
Utils.cpp [LLVM-C] Expose the "Add Discriminators" Pass To LLVM-C 2019-03-15 16:57:23 +00:00
VNCoercion.cpp [Alignment][NFC] Remove LoadInst::setAlignment(unsigned) 2019-09-30 09:37:05 +00:00
ValueMapper.cpp [ValueMapper] NFC: Remove dead code to pause metadata mapping 2019-08-28 17:43:14 +00:00