[RISCV] Fix invalid kill on callee save
commit4ec1b8eeac442a44cad329bd28d5c229c227b1f7
authorDavid Callahan <david.callahan1@live.com>
Tue, 2 Nov 2021 11:55:12 +0000 (2 11:55 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 2 Nov 2021 11:56:54 +0000 (2 11:56 +0000)
tree174130e946405ca28d1ca0ce6a459a44e5ffda74
parent58dd658583eec9af24ca1262e1bce9f884d65487
[RISCV] Fix invalid kill on callee save

A callee save may be live (specifically X1) on entry and so a spill
should not mark it killed.

Differential Revision: https://reviews.llvm.org/D111285
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/test/CodeGen/RISCV/live-sp.mir [new file with mode: 0644]