[all-commits] [llvm/llvm-project] e09828: [RISCV] Don't getDebugLoc for the end node of MBB ...
luxufan via All-commits
all-commits at lists.llvm.org
Sat Apr 30 10:17:33 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e098281c278cd1d840d6ee28d63a7d9671abbe4b
https://github.com/llvm/llvm-project/commit/e098281c278cd1d840d6ee28d63a7d9671abbe4b
Author: luxufan <luxufan at iscas.ac.cn>
Date: 2022-04-30 (Sat, 30 Apr 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
A llvm/test/CodeGen/RISCV/pr53662.mir
Log Message:
-----------
[RISCV] Don't getDebugLoc for the end node of MBB iterator
Because of shrink wrapping, the block to insert epilog may don't have
instructions (Only debug instructions). And the position to insert may
point to MBB.end() that don't have a DebugLoc. This patch fix this
problem.
The test program was copied from the issue:https://github.com/llvm/llvm-project/issues/53662
Reviewed By: luismarques
Differential Revision: https://reviews.llvm.org/D123679
More information about the All-commits
mailing list