about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-13 11:47:33 +0000
committerbors <bors@rust-lang.org>2017-04-13 11:47:33 +0000
commit43ef63d5b4279ef97ed921338a69b0d62101ca83 (patch)
tree7b09bb241ed5c8d7a95d6d7a5800cff62b5cfec8 /src/test/run-pass/thinlto
parent1f59c7ebb170b1ca98bc1d620afb02f7b3ae3fa7 (diff)
parent9b5c577dbd45ff3b11f9d7aab6990cc1ee9194fb (diff)
downloadrust-43ef63d5b4279ef97ed921338a69b0d62101ca83.tar.gz
rust-43ef63d5b4279ef97ed921338a69b0d62101ca83.zip
Auto merge of #40367 - eddyb:naked-cruft, r=nagisa
Improve the LLVM IR we generate for trivial functions, especially #[naked] ones.

These two small changes fix edef1c/libfringe#68:
* Don't emit ZST allocas, such as when returning `()`
* Don't emit a branch from LLVM's entry block to MIR's `START_BLOCK` unless needed
  * That is, if a loop branches back to it, although I'm not sure that's even valid MIR
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions