[X86] Remove X86LowerAMXType::getRowFromCol from X86LowerAMXType.cpp

Remove method X86LowerAMXType::getRowFromCol since it's not used, and
it's causing a warning.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D108862
This commit is contained in:
Vince Bridgers 2021-08-27 17:57:44 -05:00 committed by einvbri
parent 96d3294555
commit 55ba1de7c5
1 changed files with 0 additions and 17 deletions

View File

@ -175,25 +175,8 @@ public:
void combineLoadBitcast(LoadInst *LD, BitCastInst *Bitcast);
void combineBitcastStore(BitCastInst *Bitcast, StoreInst *ST);
bool transformBitcast(BitCastInst *Bitcast);
Value *getRowFromCol(Instruction *II, Value *V, unsigned Granularity);
};
Value *X86LowerAMXType::getRowFromCol(Instruction *II, Value *V,
unsigned Granularity) {
if (Col2Row.count(V))
return Col2Row[V];
IRBuilder<> Builder(&*II->getParent()->getFirstInsertionPt());
if (auto *I = dyn_cast<Instruction>(V)) {
BasicBlock::iterator Iter = I->getIterator();
++Iter;
Builder.SetInsertPoint(&*Iter);
}
ConstantInt *Gran = Builder.getInt16(Granularity);
Value *RealRow = Builder.CreateUDiv(V, Gran);
Col2Row[V] = RealRow;
return RealRow;
}
// %src = load <256 x i32>, <256 x i32>* %addr, align 64
// %2 = bitcast <256 x i32> %src to x86_amx
// -->