Evan Cheng
eb56dca4fd
Fix epilogue codegen to avoid leaving the stack pointer in an invalid
...
state. Previously Thumb2 would restore sp from fp like this:
mov sp, r7
sub, sp, #4
If an interrupt is taken after the 'mov' but before the 'sub', callee-saved
registers might be clobbered by the interrupt handler. Instead, try
restoring directly from sp:
add sp, #4
Or, if necessary (with VLA, etc.) use a scratch register to compute sp and
then restore it:
sub.w r4, r7, #8
mov sp, r7
rdar://8465407
llvm-svn: 119977
2010-11-22 18:12:04 +00:00
..
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2010-08-30 10:48:29 +00:00
2009-09-09 00:09:15 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-06-17 15:18:27 +00:00
2010-04-07 20:43:35 +00:00
2010-06-19 01:01:32 +00:00
2010-07-01 22:26:26 +00:00
2010-09-30 20:51:52 +00:00
2010-06-17 15:18:27 +00:00
2010-11-09 22:50:44 +00:00
2010-11-22 18:12:04 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2010-11-22 18:12:04 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2010-11-17 21:57:32 +00:00
2010-06-17 15:18:27 +00:00
2009-09-09 00:09:15 +00:00
2010-06-17 15:18:27 +00:00
2010-07-02 20:16:09 +00:00
2010-11-17 21:57:32 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2010-06-17 15:18:27 +00:00
2009-09-09 00:09:15 +00:00
2009-09-09 00:09:15 +00:00
2010-08-31 17:58:47 +00:00