forked from OSchip/llvm-project
AMDGPU/SI: Remove isTriviallyReMaterializable() function from SIInstrInfo
Summary: This function is never called. isReallyTriviallyReMaterializable() is the function that should be implemented instead. Reviewers: arsenm Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11620 llvm-svn: 243651
This commit is contained in:
parent
f8e6f4496b
commit
9d74076065
|
@ -1045,18 +1045,6 @@ bool SIInstrInfo::FoldImmediate(MachineInstr *UseMI, MachineInstr *DefMI,
|
|||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
SIInstrInfo::isTriviallyReMaterializable(const MachineInstr *MI,
|
||||
AliasAnalysis *AA) const {
|
||||
switch(MI->getOpcode()) {
|
||||
default: return AMDGPUInstrInfo::isTriviallyReMaterializable(MI, AA);
|
||||
case AMDGPU::S_MOV_B32:
|
||||
case AMDGPU::S_MOV_B64:
|
||||
case AMDGPU::V_MOV_B32_e32:
|
||||
return MI->getOperand(1).isImm();
|
||||
}
|
||||
}
|
||||
|
||||
static bool offsetsDoNotOverlap(int WidthA, int OffsetA,
|
||||
int WidthB, int OffsetB) {
|
||||
int LowOffset = OffsetA < OffsetB ? OffsetA : OffsetB;
|
||||
|
|
|
@ -125,9 +125,6 @@ public:
|
|||
unsigned &SrcOpIdx1,
|
||||
unsigned &SrcOpIdx2) const override;
|
||||
|
||||
bool isTriviallyReMaterializable(const MachineInstr *MI,
|
||||
AliasAnalysis *AA = nullptr) const;
|
||||
|
||||
bool areMemAccessesTriviallyDisjoint(
|
||||
MachineInstr *MIa, MachineInstr *MIb,
|
||||
AliasAnalysis *AA = nullptr) const override;
|
||||
|
|
Loading…
Reference in New Issue