OSDN Git Service

ARMFrameLowering: Only set ExtraCSSpill for actually unused registers.
authorMatthias Braun <matze@braunis.de>
Fri, 28 Jul 2017 01:36:32 +0000 (01:36 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 28 Jul 2017 01:36:32 +0000 (01:36 +0000)
commitbbad0fa6a9a207993278c51bd2c044f3dd521104
treea23d10ec8350202a0a06af4f955678befe875235
parent2c420717ff9ce931dd9ac120e0f7c66a2131be55
ARMFrameLowering: Only set ExtraCSSpill for actually unused registers.

The code assumed that unclobbered/unspilled callee saved registers are
unused in the function. This is not true for callee saved registers that are
also used to pass parameters such as swiftself.

rdar://33401922

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
test/CodeGen/ARM/pei-swiftself.mir [new file with mode: 0644]