Fix PR19136: [ARM] Fix Folding SP Update into vpush/vpop
authorWeiming Zhao <weimingz@codeaurora.org>
Thu, 20 Mar 2014 23:28:16 +0000 (23:28 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Thu, 20 Mar 2014 23:28:16 +0000 (23:28 +0000)
commit4eb2d228e9c676eea67c4a74090f76efa1a058fb
treea83a3d977f54bc69c819ad26058361561e45ec23
parentaff0ab4e7ca5ee5e65b5b25fad8f6a17f364e072
Fix PR19136: [ARM] Fix Folding SP Update into vpush/vpop

Sicne MBB->computeRegisterLivenes() returns Dead for sub regs like s0,
d0 is used in vpop instead of updating sp, which causes s0 dead before
its use.

This patch checks the liveness of each subreg to make sure the reg is
actually dead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
test/CodeGen/ARM/fold-stack-adjust.ll