[llvm-branch-commits] [llvm-branch] r98286 - in /llvm/branches/Apple/Hermes: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/tailcallfp2.ll

Bill Wendling isanbard at gmail.com
Thu Mar 11 13:19:36 PST 2010


Author: void
Date: Thu Mar 11 15:19:35 2010
New Revision: 98286

URL: http://llvm.org/viewvc/llvm-project?rev=98286&view=rev
Log:
revert r98270.

Modified:
    llvm/branches/Apple/Hermes/lib/Target/X86/X86ISelLowering.cpp
    llvm/branches/Apple/Hermes/test/CodeGen/X86/tailcallfp2.ll

Modified: llvm/branches/Apple/Hermes/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/Target/X86/X86ISelLowering.cpp?rev=98286&r1=98285&r2=98286&view=diff
==============================================================================
--- llvm/branches/Apple/Hermes/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/branches/Apple/Hermes/lib/Target/X86/X86ISelLowering.cpp Thu Mar 11 15:19:35 2010
@@ -2089,7 +2089,7 @@
     // tailcall must happen after callee-saved registers are poped.
     // FIXME: Give it a special register class that contains caller-saved
     // register instead?
-    unsigned TCReg = Is64Bit ? X86::R11 : X86::ECX;
+    unsigned TCReg = Is64Bit ? X86::R11 : X86::EAX;
     Chain = DAG.getCopyToReg(Chain,  dl,
                              DAG.getRegister(TCReg, getPointerTy()),
                              Callee,InFlag);
@@ -2143,7 +2143,7 @@
     }
 
     assert(((Callee.getOpcode() == ISD::Register &&
-               (cast<RegisterSDNode>(Callee)->getReg() == X86::ECX ||
+               (cast<RegisterSDNode>(Callee)->getReg() == X86::EAX ||
                 cast<RegisterSDNode>(Callee)->getReg() == X86::R11)) ||
               Callee.getOpcode() == ISD::TargetExternalSymbol ||
               Callee.getOpcode() == ISD::TargetGlobalAddress) &&

Modified: llvm/branches/Apple/Hermes/test/CodeGen/X86/tailcallfp2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/test/CodeGen/X86/tailcallfp2.ll?rev=98286&r1=98285&r2=98286&view=diff
==============================================================================
--- llvm/branches/Apple/Hermes/test/CodeGen/X86/tailcallfp2.ll (original)
+++ llvm/branches/Apple/Hermes/test/CodeGen/X86/tailcallfp2.ll Thu Mar 11 15:19:35 2010
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -tailcallopt | grep {jmp} | grep {\\*%ecx}
+; RUN: llc < %s -march=x86 -tailcallopt | grep {jmp} | grep {\\*%eax}
 
 declare i32 @putchar(i32)
 





More information about the llvm-branch-commits mailing list