mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
two register machineoperands are not identical unless their subregs match.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e3304900f
commit
0974d9a524
@ -153,7 +153,8 @@ bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const {
|
|||||||
switch (getType()) {
|
switch (getType()) {
|
||||||
default: assert(0 && "Unrecognized operand type");
|
default: assert(0 && "Unrecognized operand type");
|
||||||
case MachineOperand::MO_Register:
|
case MachineOperand::MO_Register:
|
||||||
return getReg() == Other.getReg() && isDef() == Other.isDef();
|
return getReg() == Other.getReg() && isDef() == Other.isDef() &&
|
||||||
|
getSubReg() == Other.getSubReg();
|
||||||
case MachineOperand::MO_Immediate:
|
case MachineOperand::MO_Immediate:
|
||||||
return getImm() == Other.getImm();
|
return getImm() == Other.getImm();
|
||||||
case MachineOperand::MO_MachineBasicBlock:
|
case MachineOperand::MO_MachineBasicBlock:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user