[llvm-commits] [llvm] r56117 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp

Owen Anderson resistor at mac.com
Thu Sep 11 12:44:55 PDT 2008


Author: resistor
Date: Thu Sep 11 14:44:55 2008
New Revision: 56117

URL: http://llvm.org/viewvc/llvm-project?rev=56117&view=rev
Log:
Fix a bug in ANY_EXTEND handling that was breaking 403.gcc on X86-64 in fast isel.

Modified:
    llvm/trunk/lib/Target/X86/X86FastISel.cpp

Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=56117&r1=56116&r2=56117&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Thu Sep 11 14:44:55 2008
@@ -271,8 +271,13 @@
 bool X86FastISel::X86FastEmitExtend(ISD::NodeType Opc, MVT DstVT,
                                     unsigned Src, MVT SrcVT,
                                     unsigned &ResultReg) {
-  ResultReg = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc, Src);
-  return ResultReg != 0;
+  unsigned RR = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc, Src);
+  
+  if (RR != 0) {
+    ResultReg = RR;
+    return true;
+  } else
+    return false;
 }
 
 /// X86SelectConstAddr - Select and emit code to materialize constant address.





More information about the llvm-commits mailing list