aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authoryonghong-song <yhs@fb.com>2025-03-20 18:18:03 -0700
committerGitHub <noreply@github.com>2025-03-20 18:18:03 -0700
commit0ffe83feaca02cf1c7a25c559c72cc16813a2f86 (patch)
tree9eacc472b7bda2232b96723a0cf713e07699ef28 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent92fc748f0e6b4cc3a06b5d1de15b8b91404b7296 (diff)
downloadllvm-0ffe83feaca02cf1c7a25c559c72cc16813a2f86.zip
llvm-0ffe83feaca02cf1c7a25c559c72cc16813a2f86.tar.gz
llvm-0ffe83feaca02cf1c7a25c559c72cc16813a2f86.tar.bz2
[SelectionDAG] Not issue TRAP node if naked function (#132147)
In [1], Nikita Popov suggested that during lowering 'unreachable' insn should not generate extra code for naked functions, and this applies to all architectures. Note that for naked functions, 'unreachable' insn is necessary in IR since the basic block needs a terminator to end. This patch checked whether a function is naked function or not. If it is a naked function, 'unreachable' insn will not generate ISD::TRAP. [1] https://github.com/llvm/llvm-project/pull/131731 Co-authored-by: Yonghong Song <yonghong.song@linux.dev>
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions