mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
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. llvm-svn: 92995
This commit is contained in:
parent
f96a9ec02b
commit
067afe673c
@ -1652,12 +1652,6 @@ unsigned X86FastISel::TargetMaterializeConstant(Constant *C) {
|
|||||||
PICBase = X86::RIP;
|
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.
|
// Create the load from the constant pool.
|
||||||
unsigned MCPOffset = MCP.getConstantPoolIndex(C, Align);
|
unsigned MCPOffset = MCP.getConstantPoolIndex(C, Align);
|
||||||
unsigned ResultReg = createResultReg(RC);
|
unsigned ResultReg = createResultReg(RC);
|
||||||
|
Loading…
Reference in New Issue
Block a user