[PATCH] D11814: Define a subtarget feature to force stack realignment

Akira Hatanaka via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 13:18:15 PDT 2015


ahatanak updated this revision to Diff 33457.
ahatanak added a comment.

The updated patch makes the following changes:

- Use function attribute "stackrealign" to decide whether stack realignment should happen.
- Rename "force-align-stack" to "stackrealign" to be consistent with the function attribute.

I also think function attribute "no-realign-stack" should be a cl::opt option since it is used for debugging purposes. I plan to make the changes in a follow-up patch.


http://reviews.llvm.org/D11814

Files:
  include/llvm/CodeGen/CommandFlags.h
  include/llvm/Target/TargetRegisterInfo.h
  lib/CodeGen/TargetRegisterInfo.cpp
  lib/Target/X86/X86FrameLowering.cpp
  test/CodeGen/Generic/ForceStackAlign.ll
  test/CodeGen/X86/dynamic-allocas-VLAs.ll
  test/CodeGen/X86/force-align-stack-alloca.ll
  test/CodeGen/X86/force-align-stack.ll
  test/CodeGen/X86/i486-fence-loop.ll
  test/CodeGen/X86/inline-asm-sp-clobber-memcpy.ll
  test/CodeGen/X86/movtopush.ll
  test/CodeGen/X86/pr11468.ll
  test/CodeGen/X86/stack-align-memcpy.ll
  test/CodeGen/X86/unaligned-spill-folding.ll
  test/CodeGen/X86/x86-64-baseptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11814.33457.patch
Type: text/x-patch
Size: 9640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/f09d2f61/attachment.bin>


More information about the llvm-commits mailing list