The two tests rely on LegacyInlinerBase::doFinalization to remove
Function::isDefTriviallyDead() functions. The new PM does not have the behavior.
The -NEXT patterns checking the emptiness are actually sufficient.
Note, reassociate-deadinst.ll has become stale - it no longer catches
the problem r285380 intended. Unfortunately it is difficult to craft a
new test because it is actually pretty difficult to break it with
`MadeChange = true;` all over the file.
}
define internal void @bar() noinline nounwind readnone {
-; CHECK-NOT: bar
entry:
ret void
}
; RUN: opt < %s -inline -function-attrs -reassociate -S | FileCheck %s
-; CHECK-NOT: func1
; CHECK-LABEL: main
; CHECK-NEXT: ret void