[all-commits] [llvm/llvm-project] 0935e1: Return nullopt if Reg is undef. (#155893)
Shubham Sandeep Rastogi via All-commits
all-commits at lists.llvm.org
Thu Oct 16 08:27:02 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0935e1510da9435c6a7c43fd383caf8b91971d4b
https://github.com/llvm/llvm-project/commit/0935e1510da9435c6a7c43fd383caf8b91971d4b
Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
Date: 2025-10-16 (Thu, 16 Oct 2025)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
A llvm/test/DebugInfo/AArch64/callsite.mir
Log Message:
-----------
Return nullopt if Reg is undef. (#155893)
In describeORRLoadedValue in AArch64InstrInfo.cpp, we try to check if an
instruction is a copy like instruction, the isCopyLikeInstr function
returns a pair of destination and source registers. If any of them are
undef, we should just return a nullopt to avoid any crashes later in the
code when trying to get the SubReg for one of those registers.
rdar://158581204
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list