Fix incorrect choice of callee-saved registers save/restore points
commitafb8c1fed21eb4848d86f2d28e9cb3afcfbb2656
authorMomchil Velikov <momchil.velikov@arm.com>
Tue, 17 Apr 2018 08:37:38 +0000 (17 08:37 +0000)
committerMomchil Velikov <momchil.velikov@arm.com>
Tue, 17 Apr 2018 08:37:38 +0000 (17 08:37 +0000)
treeb8ea2fb4471cadd8475d72579332a96fd046a9d7
parentf7a516d335cd00a19dff632c78479981297b26fa
Fix incorrect choice of callee-saved registers save/restore points

Make the shrink wrapping pass pay attention to uses/defs of the stack pointer.

Differential revision: https://reviews.llvm.org/D45524

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ShrinkWrap.cpp