[X86] Enable call frame optimization ("mov to push") not only for optsize (PR26325)
authorHans Wennborg <hans@hanshq.net>
Wed, 30 Mar 2016 23:38:01 +0000 (23:38 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 30 Mar 2016 23:38:01 +0000 (23:38 +0000)
commit6596977130f9fb5179b16d3c3c291c69efd627bb
tree947efc1f13ea3ee726a20057903113f151c3dd88
parent0e450a5d61795a2ca9160a34a75855fd1d16e16c
[X86] Enable call frame optimization ("mov to push") not only for optsize (PR26325)

The size savings are significant, and from what I can tell, both ICC and GCC do this.

Differential Revision: http://reviews.llvm.org/D18573

llvm-svn: 264966
35 files changed:
llvm/lib/Target/X86/X86CallFrameOptimization.cpp
llvm/test/CodeGen/X86/2006-05-02-InstrSched1.ll
llvm/test/CodeGen/X86/2006-11-12-CSRetCC.ll
llvm/test/CodeGen/X86/atom-lea-sp.ll
llvm/test/CodeGen/X86/avx-intel-ocl.ll
llvm/test/CodeGen/X86/avx512-intel-ocl.ll
llvm/test/CodeGen/X86/call-push.ll
llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll
llvm/test/CodeGen/X86/coalescer-commute3.ll
llvm/test/CodeGen/X86/hipe-prologue.ll
llvm/test/CodeGen/X86/i386-shrink-wrapping.ll
llvm/test/CodeGen/X86/libcall-sret.ll
llvm/test/CodeGen/X86/localescape.ll
llvm/test/CodeGen/X86/mcu-abi.ll
llvm/test/CodeGen/X86/memset-2.ll
llvm/test/CodeGen/X86/mingw-alloca.ll
llvm/test/CodeGen/X86/movtopush.ll
llvm/test/CodeGen/X86/phys-reg-local-regalloc.ll
llvm/test/CodeGen/X86/segmented-stacks.ll
llvm/test/CodeGen/X86/seh-catch-all-win32.ll
llvm/test/CodeGen/X86/seh-stack-realign.ll
llvm/test/CodeGen/X86/shrink-wrap-chkstk.ll
llvm/test/CodeGen/X86/sse-intel-ocl.ll
llvm/test/CodeGen/X86/tailcall-stackalign.ll
llvm/test/CodeGen/X86/twoaddr-coalesce.ll
llvm/test/CodeGen/X86/vararg-callee-cleanup.ll
llvm/test/CodeGen/X86/win-catchpad-csrs.ll
llvm/test/CodeGen/X86/win-catchpad.ll
llvm/test/CodeGen/X86/win-cleanuppad.ll
llvm/test/CodeGen/X86/win32-eh-states.ll
llvm/test/CodeGen/X86/win32-seh-catchpad.ll
llvm/test/CodeGen/X86/win32-seh-nested-finally.ll
llvm/test/CodeGen/X86/win32_sret.ll
llvm/test/CodeGen/X86/xmulo.ll
llvm/test/CodeGen/X86/zext-fold.ll