[PATCH] D108862: [X86] Remove X86LowerAMXType::getRowFromCol from X86LowerAMXType.cpp
Vince Bridgers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 28 03:51:21 PDT 2021
vabridgers created this revision.
vabridgers added a reviewer: LuoYuanke.
Herald added subscribers: pengfei, hiraditya.
vabridgers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Remove method X86LowerAMXType::getRowFromCol since it's not used, and
it's causing a warning.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108862
Files:
llvm/lib/Target/X86/X86LowerAMXType.cpp
Index: llvm/lib/Target/X86/X86LowerAMXType.cpp
===================================================================
--- llvm/lib/Target/X86/X86LowerAMXType.cpp
+++ llvm/lib/Target/X86/X86LowerAMXType.cpp
@@ -175,25 +175,8 @@
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
// -->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108862.369245.patch
Type: text/x-patch
Size: 1140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210828/e382c71a/attachment.bin>
More information about the llvm-commits
mailing list