HomePhabricator

[X86] Convert esp-relative movs of function arguments into pushes, step 1

Authored by mkuper on Dec 8 2014, 10:10 PM.

Description

[X86] Convert esp-relative movs of function arguments into pushes, step 1

This handles the simplest case for mov -> push conversion:

  1. x86-32 calling convention, everything is passed through the stack.
  2. There is no reserved call frame.
  3. Only registers or immediates are pushed, no attempt to combine a mem-reg-mem sequence into a single PUSHmm.

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

llvm-svn: 223757

Details

Committed
mkuperDec 8 2014, 10:10 PM
Differential Revision
D6503: [X86] Convert esp-relative movs of function arguments to pushes, step 1
Parents
rG598bd05bd772: Reland r223754
Branches
Unknown
Tags
Unknown