diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-12 17:42:56 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-12 17:42:56 +0000 |
| commit | b5cda3daa9d3724d8c0231bb3b2417d741c8ff09 (patch) | |
| tree | 6df21559737f2f4927d543076b946e4cbed8feef /llvm/lib/Target/X86 | |
| parent | df2ccc395e16d93f444a529a9d33d37cb9e52400 (diff) | |
| download | bcm5719-llvm-b5cda3daa9d3724d8c0231bb3b2417d741c8ff09.tar.gz bcm5719-llvm-b5cda3daa9d3724d8c0231bb3b2417d741c8ff09.zip | |
Mark ADJCALLSTACKUP/DOWN as clobbering ESP so that virtregmap will notice
that it can't assume ESP is unmodified across the instrs.
llvm-svn: 30905
Diffstat (limited to 'llvm/lib/Target/X86')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 11c67bff062..f7a5af20f99 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -346,11 +346,15 @@ class Ii32<bits<8> o, Format f, dag ops, string asm, list<dag> pattern> // Instruction list... // +// ADJCALLSTACKDOWN/UP implicitly use/def ESP because they may be expanded into +// a stack adjustment and the codegen must know that they may modify the stack +// pointer before prolog-epilog rewriting occurs. def ADJCALLSTACKDOWN : I<0, Pseudo, (ops i32imm:$amt), "#ADJCALLSTACKDOWN", - [(X86callseq_start imm:$amt)]>; + [(X86callseq_start imm:$amt)]>, Imp<[ESP],[ESP]>; def ADJCALLSTACKUP : I<0, Pseudo, (ops i32imm:$amt1, i32imm:$amt2), "#ADJCALLSTACKUP", - [(X86callseq_end imm:$amt1, imm:$amt2)]>; + [(X86callseq_end imm:$amt1, imm:$amt2)]>, + Imp<[ESP],[ESP]>; def IMPLICIT_USE : I<0, Pseudo, (ops variable_ops), "#IMPLICIT_USE", []>; def IMPLICIT_DEF : I<0, Pseudo, (ops variable_ops), "#IMPLICIT_DEF", []>; def IMPLICIT_DEF_GR8 : I<0, Pseudo, (ops GR8:$dst), |

