]> granicus.if.org Git - llvm/commit
LiveDebugValues: Assume calls never clobber SP.
authorAdrian Prantl <aprantl@apple.com>
Fri, 3 Mar 2017 01:08:25 +0000 (01:08 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 3 Mar 2017 01:08:25 +0000 (01:08 +0000)
commit7b7499a7a6aedec190821aa21a28f59eb58f8988
tree2d6a06f3d239fd3df4ff6f307842bceca364b9b0
parentf4f67a0c559347ff7b5ba0183b827e0ca1ff886f
LiveDebugValues: Assume calls never clobber SP.

A call should never modify the stack pointer, but some backends are
not so sure about this and never list SP in the regmask. For the
purposes of LiveDebugValues we assume a call never clobbers SP. We
already have a similar workaround in DbgValueHistoryCalculator (which
we hopefully can retire soon).

This fixes the availabilty of local ASANified variables on AArch64.

rdar://problem/27757381

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296847 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveDebugValues.cpp
test/DebugInfo/AArch64/asan-stack-vars.ll [new file with mode: 0644]