Files
clang-p2996/llvm/test/CodeGen/PowerPC
Kai Luo 6615581526 [PowerPC] Make verifier happy when lowering llvm.trap (#77266)
`llvm.trap` is lowered to `PPC::TRAP` and `PPC::TRAP` is set as
terminator. Verifier complains about terminator should not lie in the
middle of an MBB. See #77095.

Fix it by removing `isTerminator` and `isBarrier` and then set `isTrap`
which was introduced by https://reviews.llvm.org/D48836# and is being
used by X86 and AArch64.

`PPC::TRAP` is not a hardware memory barrier and `llvm.trap` doesn't
indicate a memory barrier either.
2024-01-10 09:23:30 +08:00
..
2023-09-01 19:45:03 -04:00
2023-02-14 10:25:24 -04:00
2023-06-28 14:50:16 -04:00
2023-09-28 15:51:14 +08:00