Keep the link register for uwtable.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Tue, 25 Feb 2014 16:57:28 +0000 (16:57 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Tue, 25 Feb 2014 16:57:28 +0000 (16:57 +0000)
commit28713bdebc685a7a963fefe5a1f9d7be047a65e7
tree2330dda8d62d06ca288ca2a849c00b53c9930d05
parent6dc9f732ce9b7027e749e2ba30e60b5e397e0f21
Keep the link register for uwtable.

The function with uwtable attribute might be visited by the
stack unwinder, thus the link register should be considered
as clobbered after the execution of the branch and link
instruction (i.e. the definition of the machine instruction
can't be ignored) even when the callee function are marked
with noreturn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202165 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
test/CodeGen/ARM/noreturn.ll