[llvm] r227317 - [x32] Change the condition from bitness to LP64 for TCRETURNdi64.

Michael Kuperstein michael.m.kuperstein at intel.com
Wed Jan 28 08:11:35 PST 2015


Author: mkuper
Date: Wed Jan 28 10:11:35 2015
New Revision: 227317

URL: http://llvm.org/viewvc/llvm-project?rev=227317&view=rev
Log:
[x32] Change the condition from bitness to LP64 for TCRETURNdi64. 

TCRETURNmi64, which was mistakenly changed in r227307 will wait for another day.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrCompiler.td

Modified: llvm/trunk/lib/Target/X86/X86InstrCompiler.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrCompiler.td?rev=227317&r1=227316&r2=227317&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrCompiler.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrCompiler.td Wed Jan 28 10:11:35 2015
@@ -1076,7 +1076,7 @@ def : Pat<(X86tcret ptr_rc_tailcall:$dst
 // There wouldn't be enough scratch registers for base+index.
 def : Pat<(X86tcret_6regs (load addr:$dst), imm:$off),
           (TCRETURNmi64 addr:$dst, imm:$off)>,
-          Requires<[IsLP64]>;
+          Requires<[In64BitMode]>;
 
 def : Pat<(X86tcret (i64 tglobaladdr:$dst), imm:$off),
           (TCRETURNdi64 tglobaladdr:$dst, imm:$off)>,
@@ -1084,7 +1084,7 @@ def : Pat<(X86tcret (i64 tglobaladdr:$ds
 
 def : Pat<(X86tcret (i64 texternalsym:$dst), imm:$off),
           (TCRETURNdi64 texternalsym:$dst, imm:$off)>,
-          Requires<[In64BitMode]>;
+          Requires<[IsLP64]>;
 
 // Normal calls, with various flavors of addresses.
 def : Pat<(X86call (i32 tglobaladdr:$dst)),





More information about the llvm-commits mailing list