Files
clang-p2996/llvm/test/Transforms/Inline/2004-04-20-InlineLinkOnce.ll
Arthur Eubanks d673beee55 [PruneEH] Pin tests to legacy PM
prune-eh will not be ported to the NPM. Instead, a combination of
function-attrs and simplifycfg should be used (as described in
https://reviews.llvm.org/D44415).

This pins most tests using -prune-eh to the legacy PM. Some of these
were testing legacy PM infra (mostly the CGPassManager). Some of these
can be tested in the NPM using function-attrs and simplifycfg.

One interesting case is simplenoreturntest.ll. function-attrs +
simplifycfg does not yet make a caller of a caller of a noreturn
function end with unreachable like prune-eh does. That can be added in
the future.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D90012
2020-10-29 18:17:55 -07:00

12 lines
203 B
LLVM

; RUN: opt < %s -inline -prune-eh -disable-output -enable-new-pm=0
define linkonce void @caller() {
call void @callee( )
ret void
}
define linkonce void @callee() {
ret void
}