[PATCH] D42509: [LivePhysRegs] Preserve pristine registers in blocks with no successors.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 15:46:31 PST 2018
efriedma added a comment.
Without this patch, LLVM trunk generates the following code:
no_stm:
.fnstart
@ %bb.0: @ %entry
.save {r7, lr}
push {r7, lr}
.setfp r7, sp
add r7, sp, #0
mov r4, r3
adds r4, #8
stm r4!, {r0, r1, r2}
bl throws_2
How do you expect the unwinder to restore r4 after we've overwritten it?
Repository:
rL LLVM
https://reviews.llvm.org/D42509
More information about the llvm-commits
mailing list