[PATCH] D64176: [Bugpoint redesign] Added Pass to Remove Global Variables

Diego TreviƱo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 17:24:42 PDT 2019


diegotf created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64176

Files:
  llvm/test/Reduce/Inputs/interestingness-test.sh
  llvm/test/Reduce/Inputs/remove-funcs.sh
  llvm/test/Reduce/remove-funcs.ll
  llvm/test/Reduce/remove-global-vars.ll
  llvm/tools/llvm-reduce/CMakeLists.txt
  llvm/tools/llvm-reduce/DeltaManager.h
  llvm/tools/llvm-reduce/deltas/Delta.h
  llvm/tools/llvm-reduce/deltas/RemoveGlobalVars.cpp
  llvm/tools/llvm-reduce/deltas/RemoveGlobalVars.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64176.207934.patch
Type: text/x-patch
Size: 10182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190704/ecedcade/attachment.bin>


More information about the llvm-commits mailing list