aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-01-08 08:24:49 +0000
committerEric Christopher <echristo@apple.com>2010-01-08 08:24:49 +0000
commit968b35ff47a1f4ac3c45cc658e389d3b374e9b10 (patch)
treea5396f571fe9c56c42e8985d92d9cda40932e391 /lib
parent6f279e0bda35a35740cc8c5479d579890bc1d3f7 (diff)
downloadexternal_llvm-968b35ff47a1f4ac3c45cc658e389d3b374e9b10.zip
external_llvm-968b35ff47a1f4ac3c45cc658e389d3b374e9b10.tar.gz
external_llvm-968b35ff47a1f4ac3c45cc658e389d3b374e9b10.tar.bz2
After further thought revert the patch to make fast-isel avoid
putting relocations into the constant pool - this isn't needed for correctness and in the rare occasion it happens would pull us out of fast isel for the block. If fast-isel application startup time ever becomes an issue we can add better support for these addresses instead of bailing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86FastISel.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index 2986ec2..10fba24 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -1652,12 +1652,6 @@ unsigned X86FastISel::TargetMaterializeConstant(Constant *C) {
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);