[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)
commitf4d1aca56808ba143da704fb51bdf0df52ca6fef
tree1467dda135c7db421a3f4d2016b16c416d86086c
parentb08862c4f0685023dd05ffc3c756aa6a5b50b049
[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.

llvm-svn: 228924
llvm/lib/Target/X86/X86CallFrameOptimization.cpp
llvm/test/CodeGen/X86/movtopush.ll