[Reassociate][test] Delete improper -NOT patterns to work with -enable-new-pm=1
authorFangrui Song <i@maskray.me>
Thu, 29 Oct 2020 06:58:31 +0000 (23:58 -0700)
committerFangrui Song <i@maskray.me>
Thu, 29 Oct 2020 06:59:11 +0000 (23:59 -0700)
commitee7e03e19e7447985d4710dd93d94bdecc665989
tree670738e6064857126d1ae007fb935f2e7a12519e
parent08bb5d9196b3fed9a530d28a8a0f06438ab7a8ee
[Reassociate][test] Delete improper -NOT patterns to work with -enable-new-pm=1

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.
llvm/test/Transforms/Reassociate/erase_inst_made_change.ll
llvm/test/Transforms/Reassociate/reassociate-deadinst.ll