[all-commits] [llvm/llvm-project] 989051: [DSE] Extending isOverwrite to support offsetted f...
Matteo F. via All-commits
all-commits at lists.llvm.org
Wed Mar 10 12:09:56 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 989051d5f899c22fd2b3b4bb039b2913be0a2a4a
https://github.com/llvm/llvm-project/commit/989051d5f899c22fd2b3b4bb039b2913be0a2a4a
Author: Matteo Favaro <fvrmatteo at gmail.com>
Date: 2021-03-10 (Wed, 10 Mar 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
A llvm/test/Transforms/DeadStoreElimination/offsetted-overlapping-stores.ll
Log Message:
-----------
[DSE] Extending isOverwrite to support offsetted fully overlapping stores
The isOverwrite function is making sure to identify if two stores
are fully overlapping and ideally we would like to identify all the
instances of OW_Complete as they'll yield possibly killable stores.
The current implementation is incapable of spotting instances where
the earlier store is offsetted compared to the later store, but
still fully overlapped. The limitation seems to lie on the
computation of the base pointers with the
GetPointerBaseWithConstantOffset API that often yields different
base pointers even if the stores are guaranteed to partially overlap
(e.g. the alias analysis is returning AliasResult::PartialAlias).
The patch relies on the offsets computed and cached by BatchAAResults
(available after D93529) to determine if the offsetted overlapping
is OW_Complete.
Differential Revision: https://reviews.llvm.org/D97676
More information about the All-commits
mailing list