1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/include/llvm/Transforms/Utils
Whitney Tsang eda454c56f [LoopFusion] Move instructions from FC0.Latch to FC1.Latch.
Summary:This PR move instructions from FC0.Latch bottom up to the
beginning of FC1.Latch as long as they are proven safe.

To illustrate why this is beneficial, let's consider the following
example:
Before Fusion:
header1:
  br header2
header2:
  br header2, latch1
latch1:
  br header1, preheader3
preheader3:
  br header3
header3:
  br header4
header4:
  br header4, latch3
latch3:
  br header3, exit3

After Fusion (before this PR):
header1:
  br header2
header2:
  br header2, latch1
latch1:
  br header3
header3:
  br header4
header4:
  br header4, latch3
latch3:
  br header1, exit3

Note that preheader3 is removed during fusion before this PR.
Notice that we cannot fuse loop2 with loop4 as there exists block latch1
in between.
This PR move instructions from latch1 to beginning of latch3, and remove
block latch1. LoopFusion is now able to fuse loop nest recursively.

After Fusion (after this PR):
header1:
  br header2
header2:
  br header3
header3:
  br header4
header4:
  br header2, latch3
latch3:
  br header1, exit3

Reviewer: kbarton, jdoerfert, Meinersbur, dmgreen, fhahn, hfinkel,
bmahjour, etiotto
Reviewed By: kbarton, Meinersbur
Subscribers: hiraditya, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D71165
2019-12-17 22:10:23 +00:00
..
AddDiscriminators.h
ASanStackFrameLayout.h
BasicBlockUtils.h [BasicBlockUtils] Add utility to remove redundant dbg.value instrs 2019-12-16 11:41:21 +01:00
BreakCriticalEdges.h
BuildLibCalls.h [SLC] Convert some strndup calls to strdup calls 2019-09-23 18:20:01 +00:00
BypassSlowDivision.h [DivRemPairs] Recommit: Handling for expanded-form rem - recomposition (PR42673) 2019-07-31 12:06:51 +00:00
CallPromotionUtils.h
CanonicalizeAliases.h
Cloning.h [CallSite removal] Refactoring llvm::InlineFunction APIs 2019-06-05 21:28:13 +00:00
CodeExtractor.h [CodeExtractor] Factor out and reuse shrinkwrap analysis 2019-10-08 17:17:51 +00:00
CodeMoverUtils.h [LoopFusion] Move instructions from FC0.Latch to FC1.Latch. 2019-12-17 22:10:23 +00:00
CtorUtils.h
Debugify.h [debugify] Move the Debugify pass from tools/opt to lib/Transform/Utils 2019-11-07 14:41:54 -08:00
EntryExitInstrumenter.h
EscapeEnumerator.h
Evaluator.h
FunctionComparator.h
FunctionImportUtils.h [ThinLTO] Avoid extra index lookup during promotion 2019-11-18 12:55:53 -08:00
GlobalStatus.h
GuardUtils.h Move widenable branch formation into makeGuardControlFlowExplicit helper 2019-11-20 12:54:05 -08:00
ImportedFunctionsInliningStatistics.h
InjectTLIMappings.h [SVFS] Inject TLI Mappings in VFABI attribute. 2019-11-15 18:42:56 +00:00
IntegerDivision.h
LCSSA.h
LibCallsShrinkWrap.h
Local.h Revert "Reapply: [DebugInfo] Recover debug intrinsics when killing duplicated/empty..." 2019-12-10 16:03:17 -08:00
LoopRotationUtils.h
LoopSimplify.h [MemorySSA] Teach LoopSimplify to preserve MemorySSA. 2019-05-08 17:05:36 +00:00
LoopUtils.h [LICM] Invalidate SCEV upon instruction hoisting 2019-10-31 17:37:53 +07:00
LoopVersioning.h
LowerInvoke.h
LowerMemIntrinsics.h
Mem2Reg.h
MisExpect.h Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
ModuleUtils.h [ModuleUtils] Clean up header file. [NFC] 2019-11-14 04:36:45 +00:00
NameAnonGlobals.h
PredicateInfo.h [PredicateInfo] Use SmallVector instead of SmallPtrSet. 2019-07-25 15:35:10 +00:00
PromoteMemToReg.h
SanitizerStats.h
SimplifyIndVar.h
SimplifyLibCalls.h [InstCombine] Optimize some memccpy calls to memcpy/null 2019-11-26 10:54:47 +01:00
SizeOpts.h [PGO][PGSO] Distinguish queries from unit tests and explicitly enable for the existing IR passes only. NFC. 2019-12-04 09:35:50 -08:00
SplitModule.h
SSAUpdater.h
SSAUpdaterBulk.h
SSAUpdaterImpl.h
SymbolRewriter.h
UnifyFunctionExitNodes.h Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
UnrollLoop.h [Unroll] Do NOT unroll a loop with small runtime upperbound 2019-09-26 21:40:27 +00:00
ValueMapper.h Linker: Add support for GlobalIFunc. 2019-08-08 22:09:18 +00:00
VNCoercion.h