summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/TestRunner.cpp
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 00:42:50 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 00:42:50 +0000
commit1c9ca7d101354e5478ef064e52c8ca174bd80aa0 (patch)
treef3364e889c0326ea2549da122a513c51055a5a42 /llvm/tools/llvm-reduce/TestRunner.cpp
parent8d5c28031646d79a8044edb36e3ad503f44058bc (diff)
downloadbcm5719-llvm-1c9ca7d101354e5478ef064e52c8ca174bd80aa0.tar.gz
bcm5719-llvm-1c9ca7d101354e5478ef064e52c8ca174bd80aa0.zip
[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/tools/llvm-reduce/TestRunner.cpp')
-rw-r--r--llvm/tools/llvm-reduce/TestRunner.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/TestRunner.cpp b/llvm/tools/llvm-reduce/TestRunner.cpp
index 479b9497bf6..59dc78418f8 100644
--- a/llvm/tools/llvm-reduce/TestRunner.cpp
+++ b/llvm/tools/llvm-reduce/TestRunner.cpp
@@ -1,3 +1,11 @@
+//===-- TestRunner.cpp ----------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
#include "TestRunner.h"
using namespace llvm;
OpenPOWER on IntegriCloud