Tim Northover 7c4342e90b ARM: fix folding of stack-adjustment (yet again).
When trying to eliminate an "sub sp, sp, #N" instruction by folding
it into an existing push/pop using dummy registers, we need to account
for the fact that this might affect precisely how "fp" gets set in the
prologue.

We were attempting this, but assuming that *whenever* we performed a
fold it would make a difference. This is false, for example, in:
    push {r4, r7, lr}
    add fp, sp, #4
    vpush {d8}
    sub sp, sp, #8

we can fold the "sub" into the "vpush", forming "vpush {d7, d8}".
However, in that case the "add fp" instruction mustn't change, which
we were getting wrong before.

Should fix PR18160.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196725 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-08 15:56:50 +00:00
..
2013-05-20 08:01:34 +00:00
2010-09-17 21:46:16 +00:00
2012-06-11 08:07:26 +00:00
2012-02-28 02:08:50 +00:00
2010-09-02 20:19:24 +00:00
2012-06-15 21:32:12 +00:00
2011-11-29 23:09:16 +00:00
2012-09-29 21:43:49 +00:00
2011-03-15 01:49:08 +00:00
2011-04-01 03:36:33 +00:00
2013-09-04 21:23:23 +00:00
2011-07-26 20:49:44 +00:00
2010-08-30 23:41:49 +00:00
2013-07-18 13:17:26 +00:00