aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex MacLean <amaclean@nvidia.com>2025-06-27 08:31:08 -0700
committerGitHub <noreply@github.com>2025-06-27 08:31:08 -0700
commite933cfcfb2d207a7ff63cf152a7a78555d431d49 (patch)
treeb18e81e9fd1a598785cd9b172546cf9b8c0ddeb2 /clang/lib/Frontend/CompilerInvocation.cpp
parent37b0b0f7d2b67fedd347a4011582802303657e69 (diff)
downloadllvm-e933cfcfb2d207a7ff63cf152a7a78555d431d49.zip
llvm-e933cfcfb2d207a7ff63cf152a7a78555d431d49.tar.gz
llvm-e933cfcfb2d207a7ff63cf152a7a78555d431d49.tar.bz2
[NVPTX] Fixup NVPTXPrologEpilogPass for opt-bisect-limit (#144136)
Currently, the NVPTXPrologEpilogPass will crash if LIFETIME_START or LIFETIME_END instructions are encountered. Usually this isn't a problem since a couple earlier passes will always remove them. However, when using opt-bisect-limit crashes can occur. This can hinder debugging and reveals a potential future problem if these optimization passes change their behavior. https://cuda.godbolt.org/z/E81xxKGdb This change updates NVPTXPrologEpilogPass and NVPTXRegisterInfo::eliminateFrameIndex to gracefully handle these instructions by simply removing them. While I'm here I also did some general fixup in NVPTXPrologEpilogPass to make it look more like PrologEpilogInserter (from which it was copied).
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions