forked from OSchip/llvm-project
parent
4dcf8800e2
commit
c94c91f55c
|
@ -139,8 +139,7 @@ static bool dominatesAllUsesOf(const MachineInstr *MI, unsigned VReg,
|
||||||
MachineDominatorTree *MDT,
|
MachineDominatorTree *MDT,
|
||||||
MachineRegisterInfo *MRI) {
|
MachineRegisterInfo *MRI) {
|
||||||
|
|
||||||
assert(TargetRegisterInfo::isVirtualRegister(VReg) &&
|
assert(Register::isVirtualRegister(VReg) && "Expected virtual register!");
|
||||||
"Expected virtual register!");
|
|
||||||
|
|
||||||
for (auto it = MRI->use_nodbg_begin(VReg), end = MRI->use_nodbg_end();
|
for (auto it = MRI->use_nodbg_begin(VReg), end = MRI->use_nodbg_end();
|
||||||
it != end; ++it) {
|
it != end; ++it) {
|
||||||
|
@ -206,8 +205,7 @@ MachineInstr *ARCOptAddrMode::tryToCombine(MachineInstr &Ldst) {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned B = Base.getReg();
|
unsigned B = Base.getReg();
|
||||||
if (TargetRegisterInfo::isStackSlot(B) ||
|
if (Register::isStackSlot(B) || !Register::isVirtualRegister(B)) {
|
||||||
!TargetRegisterInfo::isVirtualRegister(B)) {
|
|
||||||
LLVM_DEBUG(dbgs() << "[ABAW] Base is not VReg\n");
|
LLVM_DEBUG(dbgs() << "[ABAW] Base is not VReg\n");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue