[PATCH] D53779: [CodeExtractor] Allow extracting allocas within simple stack{save, restore} pairs

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 26 16:12:31 PDT 2018


vsk updated this revision to Diff 171368.
vsk added a comment.

- Fix the issues Eli pointed out.

The source is essentially:

  uint8_t alignas(16) Buf[__builtin_os_log_format_buffer_size(fmt, ##__VA_ARGS__)];

In general I don't think this has to have a fixed size? Maybe some other optimization was able to simplify the alloca.


https://reviews.llvm.org/D53779

Files:
  llvm/include/llvm/Transforms/Utils/CodeExtractor.h
  llvm/lib/Transforms/Utils/CodeExtractor.cpp
  llvm/test/Transforms/HotColdSplit/outline-safe-alloca.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53779.171368.patch
Type: text/x-patch
Size: 7983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181026/0ea782b3/attachment.bin>


More information about the llvm-commits mailing list