about summary refs log tree commit diff
path: root/src/rt/rust_stack.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2013-07-28 16:40:35 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2013-08-10 11:04:50 +0200
commit4b74b8dca4076797bb928707fb19e98cfbca09d4 (patch)
tree2f98189e792a1419655cdb08d587b69b3e5a46a1 /src/rt/rust_stack.cpp
parente81e81f234731a31fad9afdc2045bef3fbdf1109 (diff)
downloadrust-4b74b8dca4076797bb928707fb19e98cfbca09d4.tar.gz
rust-4b74b8dca4076797bb928707fb19e98cfbca09d4.zip
Elide unnecessary ret slot allocas
When there is only a single store to the ret slot that dominates the
load that gets the value for the "ret" instruction, we can elide the
ret slot and directly return the operand of the dominating store
instruction. This is the same thing that clang does, except for a
special case that doesn't seem to affect us.

Fixes #8238
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions