[StructurizeCFG] Remove imposible case and replace by assert
authorJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>
Tue, 27 Sep 2022 13:48:10 +0000 (13:48 +0000)
committerJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>
Thu, 29 Sep 2022 08:27:49 +0000 (08:27 +0000)
commite9716c64ec065693d53502b84b8a74190b691248
tree112dc8e32bd0c94a0d9a65fbf7f0fd2d90d81c9b
parent9247b012d6dda9add8a46329acd9641eb5af24e3
[StructurizeCFG] Remove imposible case and replace by assert

In addition, replace outdated XFAIL test by a new one.

Differential Revision: https://reviews.llvm.org/D134439
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
llvm/test/Transforms/StructurizeCFG/infinite-loop.ll [new file with mode: 0644]
llvm/test/Transforms/StructurizeCFG/no-branch-to-entry.ll [deleted file]