[X86] Call frame optimization - allow stack-relative movs to be folded into a push
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 12 Feb 2015 14:17:35 +0000 (14:17 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 12 Feb 2015 14:17:35 +0000 (14:17 +0000)
commitfb107d8bf03c1cb63b307e19c47df9dba6dc0ff0
treebf07011f4ae6af0e9c78affd6ab22b325a8d468f
parent44926033f61b3927677f280439e530ae86cfea74
[X86] Call frame optimization - allow stack-relative movs to be folded into a push

Since we track esp precisely, there's no reason not to allow this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86CallFrameOptimization.cpp
test/CodeGen/X86/movtopush.ll