llvm-mirror/test/Transforms/DeadStoreElimination
Florian Hahn 01fbf332f2 [DSE,MemorySSA] Check if Current is valid for elimination first.
This changes getDomMemoryDef to check if a Current is a valid
candidate for elimination before checking for reads. Before the change,
we were spending a lot of compile-time in checking for read accesses for
Current that might not even be removable.

This patch flips the logic, so we skip Current if they cannot be
removed before checking all their uses. This is much more efficient in
practice.

It also adds a more aggressive limit for checking partially overlapping
stores. The main problem with overlapping stores is that we do not know
if they will lead to elimination until seeing all of them. This patch
limits adds a new limit for overlapping store candidates, which keeps
the number of modified overlapping stores roughly the same.

This is another substantial compile-time improvement (while also
increasing the number of stores eliminated). Geomean -O3 -0.67%,
ReleaseThinLTO -0.97%.

http://llvm-compile-time-tracker.com/compare.php?from=0a929b6978a068af8ddb02d0d4714a2843dd8ba9&to=2e630629b43f64b60b282e90f0d96082fde2dacc&stat=instructions

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D86487
2020-08-28 11:19:04 +01:00
..
MSSA [DSE,MemorySSA] Check if Current is valid for elimination first. 2020-08-28 11:19:04 +01:00
X86 Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
2011-03-25-DSEMiscompile.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
2011-09-06-EndOfFunction.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
2011-09-06-MemCpy.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
2016-07-17-UseAfterFree.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
atomic.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
calloc-store.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
combined-partial-overwrites.ll Re-land "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support" 2020-07-28 14:00:11 +00:00
const-pointers.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
crash.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
cs-cs-aliasing.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
debuginfo.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
DeleteThrowableInst.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
dominate.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
fence.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
free.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
inst-limits.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
int_sideeffect.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
invariant.start.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
launder.invariant.group.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
libcalls2.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
libcalls.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
lifetime.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
mda-with-dbg-values.ll Migrate function attribute "no-frame-pointer-elim" to "frame-pointer"="all" as cleanups after D56351 2019-12-24 15:57:33 -08:00
memintrinsics.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
memset-missing-debugloc.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
merge-stores-big-endian.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
merge-stores.ll StoreInst should store Align, not MaybeAlign 2020-05-15 12:26:58 -07:00
no-targetdata.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
operand-bundles.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
OverwriteStoreBegin.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
OverwriteStoreEnd.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
PartialStore2.ll [DSE] Bugfix to avoid PartialStoreMerging involving non byte-sized stores 2019-05-24 08:32:02 +00:00
PartialStore.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
pr11390.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
simple.ll [NewPM][BasicAA] basicaa -> basic-aa in Transforms/DeadStoreElimination 2020-06-26 20:13:37 -07:00
tail-byval.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00