[test] Rewrite phi-empty.ll into a unittest
authorArthur Eubanks <aeubanks@google.com>
Tue, 8 Dec 2020 02:57:20 +0000 (18:57 -0800)
committerArthur Eubanks <aeubanks@google.com>
Tue, 8 Dec 2020 17:59:31 +0000 (09:59 -0800)
commit554e6db18e0f264481bdab20dca9cc772d90270e
tree50e76b6e111891ef5ff932f9c4782adfd4aa14e7
parent2a06628185b4598fa8a6a5b733028b4255818ce9
[test] Rewrite phi-empty.ll into a unittest

phi-empty.ll does not pass under the new PM because the NPM runs
-loop-simplify. Running -loop-simplify ends up not reproing
https://llvm.org/PR48296.

Verified that this test fails when 9eb2c011 is reverted.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D92807
llvm/test/Transforms/LoopRotate/phi-empty.ll [deleted file]
llvm/unittests/IR/BasicBlockTest.cpp