summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/stub_compiler.cc
diff options
context:
space:
mode:
author Sebastien Hertz <shertz@google.com> 2013-02-28 16:34:13 +0100
committer Sebastien Hertz <shertz@google.com> 2013-02-28 16:43:34 +0100
commit772097020befc5b45d81d1604c897d60e7de56fe (patch)
tree77e1d328b83b80c1333714bc9655f6ddd020ec2e /src/compiler_llvm/stub_compiler.cc
parent01d1134c605190f988744ad4916f79fcb99273cd (diff)
Ensures allocas are at the start of entry block.
Allocas were not created in the entry block. Now we force allocas to be created in the entry block and they are the first instructions in this block. In the Portable, they hold the shadow frame. The LLVM code generator optimizes allocas in the entry block by placing them in the static stack frame. This prevents from using a register as a frame pointer to access them. Hopefully, this might reduce code size since we use fewer instructions to allocate/deallocate stack in prologue/epilogue. Change-Id: I4424481c886247a59a85e0ea507daf2c086ee3b2
Diffstat (limited to 'src/compiler_llvm/stub_compiler.cc')
0 files changed, 0 insertions, 0 deletions