mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
dd4a470df3
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 llvm-svn: 349601
12 lines
411 B
LLVM
12 lines
411 B
LLVM
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
|
|
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
|
; REQUIRES: loadable_module
|
|
|
|
; CHECK: f() #[[ATTRS:[0-9]+]]
|
|
define void @f() #0 {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: attributes #[[ATTRS]] = { "bugpoint-crash" }
|
|
attributes #0 = { noinline "bugpoint-crash" "no-frame-pointer-elim-non-leaf" }
|