[llvm-branch-commits] [llvm-branch] r92996 - /llvm/branches/Apple/Zoidberg/lib/Target/X86/X86FastISel.cpp

Eric Christopher echristo at apple.com
Fri Jan 8 00:27:38 PST 2010


Author: echristo
Date: Fri Jan  8 02:27:37 2010
New Revision: 92996

URL: http://llvm.org/viewvc/llvm-project?rev=92996&view=rev
Log:
Merge r92995 from mainline.

Modified:
    llvm/branches/Apple/Zoidberg/lib/Target/X86/X86FastISel.cpp

Modified: llvm/branches/Apple/Zoidberg/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/Target/X86/X86FastISel.cpp?rev=92996&r1=92995&r2=92996&view=diff

==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/Target/X86/X86FastISel.cpp Fri Jan  8 02:27:37 2010
@@ -1653,12 +1653,6 @@
     PICBase = X86::RIP;
   }
 
-  // If we've gotten here we need to make sure we don't have a constant
-  // that needs a relocation, because then we shouldn't put it into the
-  // constant pool.
-  if (C->getRelocationInfo() != Constant::NoRelocation)
-    return 0;
-  
   // Create the load from the constant pool.
   unsigned MCPOffset = MCP.getConstantPoolIndex(C, Align);
   unsigned ResultReg = createResultReg(RC);





More information about the llvm-branch-commits mailing list