diff options
author | Kai Luo <lkail@cn.ibm.com> | 2024-01-10 09:23:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 09:23:30 +0800 |
commit | 6615581526f62a00833b2d60cc31f7f12497b5ff (patch) | |
tree | 085c8fb1fc67daa5f39fcdb1c6d3583bd5d4baac /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | ea3c7b3397f8de8e885ea7cd1ed5138ec4a72d50 (diff) | |
download | llvm-6615581526f62a00833b2d60cc31f7f12497b5ff.zip llvm-6615581526f62a00833b2d60cc31f7f12497b5ff.tar.gz llvm-6615581526f62a00833b2d60cc31f7f12497b5ff.tar.bz2 |
[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.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions