diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-09 01:50:09 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-09 01:50:09 +0000 |
commit | cf661a040c2cdc490277c8cb6b51f486e68a9625 (patch) | |
tree | 2d63143edc1fe46633da35cb920880e67a81e490 /lib/Target/X86/X86InstrCompiler.td | |
parent | 56ec9f2c09afebc42ecf243eaaab598daa15957b (diff) | |
download | external_llvm-cf661a040c2cdc490277c8cb6b51f486e68a9625.zip external_llvm-cf661a040c2cdc490277c8cb6b51f486e68a9625.tar.gz external_llvm-cf661a040c2cdc490277c8cb6b51f486e68a9625.tar.bz2 |
Use ptr_rc_tailcall instead of GR32_TC.
The getPointerRegClass() hook will return GR32_TC, or whatever is
appropriate for the current function.
Patch by Yiannis Tsiouris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrCompiler.td')
-rw-r--r-- | lib/Target/X86/X86InstrCompiler.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrCompiler.td b/lib/Target/X86/X86InstrCompiler.td index 87634dd..810e820 100644 --- a/lib/Target/X86/X86InstrCompiler.td +++ b/lib/Target/X86/X86InstrCompiler.td @@ -1008,8 +1008,8 @@ def : Pat<(X86call (i64 texternalsym:$dst)), (CALL64pcrel32 texternalsym:$dst)>; // tailcall stuff -def : Pat<(X86tcret GR32_TC:$dst, imm:$off), - (TCRETURNri GR32_TC:$dst, imm:$off)>, +def : Pat<(X86tcret ptr_rc_tailcall:$dst, imm:$off), + (TCRETURNri ptr_rc_tailcall:$dst, imm:$off)>, Requires<[In32BitMode]>; // FIXME: This is disabled for 32-bit PIC mode because the global base |