diff options
author | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-07 00:42:50 +0000 |
---|---|---|
committer | Diego Trevino Ferrer <diegof30@gmail.com> | 2019-08-07 00:42:50 +0000 |
commit | 1c9ca7d101354e5478ef064e52c8ca174bd80aa0 (patch) | |
tree | f3364e889c0326ea2549da122a513c51055a5a42 /llvm/lib/CodeGen/MachineCSE.cpp | |
parent | 8d5c28031646d79a8044edb36e3ad503f44058bc (diff) | |
download | llvm-1c9ca7d101354e5478ef064e52c8ca174bd80aa0.zip llvm-1c9ca7d101354e5478ef064e52c8ca174bd80aa0.tar.gz llvm-1c9ca7d101354e5478ef064e52c8ca174bd80aa0.tar.bz2 |
[Bugpoint redesign] Added Pass to Remove Global Variables
Summary:
This pass tries to remove Global Variables, as well as their derived uses. For example if a variable `@x` is used by `%call1` and `%call2`, both these uses and the definition of `@x` are deleted. Moreover if `%call1` or `%call2` are used elsewhere those uses are also deleted, and so on recursively.
I'm still uncertain if this pass should remove derived uses, I'm open to suggestions.
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64176
llvm-svn: 368115
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions