OSDN Git Service

[bugpoint][PR29027] Reduce function attributes
authorBrian Gesiak <modocache@gmail.com>
Wed, 19 Dec 2018 03:42:19 +0000 (03:42 +0000)
committerBrian Gesiak <modocache@gmail.com>
Wed, 19 Dec 2018 03:42:19 +0000 (03:42 +0000)
commit79550f6c951ba7cd70ddacd28b42d6e56116ce80
treeb700a7e6e1948a34eaebe41e48de8342d74d8124
parent11acfd478b7ddac9f9af6fc9cd72d5f4897a4b83
[bugpoint][PR29027] Reduce function attributes

Summary:
In addition to reducing the functions in an LLVM module, bugpoint now
reduces the function attributes associated with each of the remaining
functions.

To test this, add a -bugpoint-crashfuncattr test pass, which crashes if
a function in the module has a "bugpoint-crash" attribute. A test case
demonstrates that the IR is reduced to just that one attribute.

Reviewers: MatzeB, silvas, davide, reames

Reviewed By: reames

Subscribers: reames, llvm-commits

Differential Revision: https://reviews.llvm.org/D55216

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349601 91177308-0d34-0410-b5e6-96231b3b80d8
test/BugPoint/func-attrs-keyval.ll [new file with mode: 0644]
test/BugPoint/func-attrs.ll [new file with mode: 0644]
tools/bugpoint-passes/TestPasses.cpp
tools/bugpoint/CrashDebugger.cpp