mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
--- Merging r128203 into '.':
U lib/Target/ARM/ARMBaseInstrInfo.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81d1e0bcac
commit
5bc870c8c3
@ -1080,11 +1080,18 @@ bool ARMBaseInstrInfo::produceSameValue(const MachineInstr *MI0,
|
|||||||
int CPI1 = MO1.getIndex();
|
int CPI1 = MO1.getIndex();
|
||||||
const MachineConstantPoolEntry &MCPE0 = MCP->getConstants()[CPI0];
|
const MachineConstantPoolEntry &MCPE0 = MCP->getConstants()[CPI0];
|
||||||
const MachineConstantPoolEntry &MCPE1 = MCP->getConstants()[CPI1];
|
const MachineConstantPoolEntry &MCPE1 = MCP->getConstants()[CPI1];
|
||||||
ARMConstantPoolValue *ACPV0 =
|
bool isARMCP0 = MCPE0.isMachineConstantPoolEntry();
|
||||||
static_cast<ARMConstantPoolValue*>(MCPE0.Val.MachineCPVal);
|
bool isARMCP1 = MCPE1.isMachineConstantPoolEntry();
|
||||||
ARMConstantPoolValue *ACPV1 =
|
if (isARMCP0 && isARMCP1) {
|
||||||
static_cast<ARMConstantPoolValue*>(MCPE1.Val.MachineCPVal);
|
ARMConstantPoolValue *ACPV0 =
|
||||||
return ACPV0->hasSameValue(ACPV1);
|
static_cast<ARMConstantPoolValue*>(MCPE0.Val.MachineCPVal);
|
||||||
|
ARMConstantPoolValue *ACPV1 =
|
||||||
|
static_cast<ARMConstantPoolValue*>(MCPE1.Val.MachineCPVal);
|
||||||
|
return ACPV0->hasSameValue(ACPV1);
|
||||||
|
} else if (!isARMCP0 && !isARMCP1) {
|
||||||
|
return MCPE0.Val.ConstVal == MCPE1.Val.ConstVal;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
} else if (Opcode == ARM::PICLDR) {
|
} else if (Opcode == ARM::PICLDR) {
|
||||||
if (MI1->getOpcode() != Opcode)
|
if (MI1->getOpcode() != Opcode)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user