diff options
author | Nikita Popov <npopov@redhat.com> | 2025-09-18 16:44:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-18 14:44:04 +0000 |
commit | 902ddda120a55789f761165442a375ca6c916752 (patch) | |
tree | f15de88c4378e85b1f0b97f57cf7334f7b1887fb /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 09e0f1e035b348e2cd694e5f4b943a78cb6ad639 (diff) | |
download | llvm-902ddda120a55789f761165442a375ca6c916752.zip llvm-902ddda120a55789f761165442a375ca6c916752.tar.gz llvm-902ddda120a55789f761165442a375ca6c916752.tar.bz2 |
[DropUnnecessaryAssumes] Add pass for dropping assumes (#159403)
This adds a new pass for dropping assumes that are unlikely to be useful
for further optimization.
It works by discarding any assumes whose affected values are one-use
(which implies that they are only used by the assume, i.e. ephemeral).
This pass currently runs at the start of the module optimization
pipeline, that is post-inline and post-link. Before that point, it is
more likely for previously "useless" assumes to become useful again,
e.g. because an additional user of the value is introduced after
inlining + CSE.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions