forked from OSchip/llvm-project
[AMDGPU] Handle frame index base operands in memOpsHaveSameBasePtr
Summary: This is in preparation for getMemOperandsWithOffset returning more base operands. Reviewers: arsenm, rampitec Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, arphaman, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73454
This commit is contained in:
parent
4332f1a4c8
commit
fcf5254fa7
|
@ -408,11 +408,6 @@ static bool memOpsHaveSameBasePtr(const MachineInstr &MI1,
|
|||
const MachineOperand &BaseOp1,
|
||||
const MachineInstr &MI2,
|
||||
const MachineOperand &BaseOp2) {
|
||||
// Support only base operands with base registers.
|
||||
// Note: this could be extended to support FI operands.
|
||||
if (!BaseOp1.isReg() || !BaseOp2.isReg())
|
||||
return false;
|
||||
|
||||
if (BaseOp1.isIdenticalTo(BaseOp2))
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue