[X86] Allow load folding into PUSH instructions
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 23 Jul 2015 12:23:45 +0000 (12:23 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 23 Jul 2015 12:23:45 +0000 (12:23 +0000)
commite31d7f83c5edcc9f797bc7c9216a8c7a27249b8d
treecfd96047367ac9f68663565a7d597a4b4d33a002
parent7463ffc5f1770ba3c619afee7e27bf034b910227
[X86] Allow load folding into PUSH instructions

Adds pushes to the folding tables.
This also required a fix to the TD definition, since the memory forms of
the push instructions did not have the right mayLoad/mayStore flags.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243010 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/fold-push.ll [new file with mode: 0644]