llvm-project/llvm/test/Transforms/LoopFusion
Aaron Kogon ae05b9dc30 Sink/hoist memory instructions between loop fusion candidates
Currently, instructions in the preheader of the second of two fusion
candidates are sunk and hoisted whenever possible, to try to allow the
loops to fuse. Memory instructions are skipped, and are never sunk or
hoisted. This change adds memory instructions for sinking/hoisting
consideration.

This change uses DependenceAnalysis to check if a mem inst in the
preheader of FC1 depends on an instruction in FC0's header, across
which it will be hoisted, or FC1's header, across which it will be
sunk. We reject cases where the dependency is a data hazard.

Differential Revision: https://reviews.llvm.org/D131606
2022-09-07 07:42:00 -04:00
..
cannot_fuse.ll
diagnostics_analysis.ll
diagnostics_missed.ll
double_loop_nest_inner_guard.ll
four_loops.ll
guarded.ll
guarded_peel.ll
guarded_unsafeblock_peel.ll
hoist_load.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
hoist_preheader.ll
hoist_store.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
inner_loops.ll
loop_nest.ll
no_sink_hoist.ll
no_sink_hoist_atomic.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
no_sink_hoist_inner_barrier.ll
no_sink_hoist_load.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
no_sink_hoist_store.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
no_sink_hoist_unknown_function.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
no_sink_hoist_volatile.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
nonadjacent_peel.ll
peel.ll
pr48060.ll
simple.ll
sink_load.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
sink_preheader.ll
sink_store.ll Sink/hoist memory instructions between loop fusion candidates 2022-09-07 07:42:00 -04:00
triple_loop_nest_inner_guard.ll