diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-26 02:04:09 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-01-26 02:04:09 +0000 |
commit | 7754f85885f8a961cb403ef13ab39583492d2b1e (patch) | |
tree | 37d47e7d7daa736acf8de3396db92f5919811557 /lib/Target/X86/X86RegisterInfo.cpp | |
parent | 36c3bc431b92f1573b3f3bd75b644774681998ee (diff) | |
download | external_llvm-7754f85885f8a961cb403ef13ab39583492d2b1e.zip external_llvm-7754f85885f8a961cb403ef13ab39583492d2b1e.tar.gz external_llvm-7754f85885f8a961cb403ef13ab39583492d2b1e.tar.bz2 |
Target/X86: Tweak win64's tailcall.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index f41be0c..2f6bd88 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -320,6 +320,12 @@ X86RegisterInfo::getPointerRegClass(unsigned Kind) const { if (TM.getSubtarget<X86Subtarget>().is64Bit()) return &X86::GR64_NOSPRegClass; return &X86::GR32_NOSPRegClass; + case 2: // Available for tailcall (not callee-saved GPRs). + if (TM.getSubtarget<X86Subtarget>().isTargetWin64()) + return &X86::GR64_TCW64RegClass; + if (TM.getSubtarget<X86Subtarget>().is64Bit()) + return &X86::GR64_TCRegClass; + return &X86::GR32_TCRegClass; } } |