summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compiler_llvm.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-02-24 13:35:44 -0800
committer buzbee <buzbee@google.com> 2012-02-24 13:35:44 -0800
commit80c4d575cb217f30460e8df210185f6282ec2727 (patch)
tree55afb84cb8e69bc7fed063c95f40e59bf064818a /src/compiler_llvm/compiler_llvm.cc
parent6b00e189defc8a6b1acbd736c65d46bbfaaa2cd6 (diff)
[Compiler] Exit-path bug fix
Surprised that we haven't run into this before. The exit code for a method involves stripping the frame. For frame sizes < 1024 this can be accomplished with an add sp,#imm. For larger frames we need to materialize the frame size in a temp register and then do a register to register add. The exit path code was failing to ensure that r0/r1 were not used as temps in the large frame case - otherwise the return value could be clobbered. Change-Id: If2618e9522fb10597f0f8c8e8afffd20d73b5d37
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
0 files changed, 0 insertions, 0 deletions