[llvm] 55ba1de - [X86] Remove X86LowerAMXType::getRowFromCol from X86LowerAMXType.cpp
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 29 10:27:49 PDT 2021
Author: Vince Bridgers
Date: 2021-08-29T12:27:34-05:00
New Revision: 55ba1de7c516b7ef736a127e8fe38229da5aae1d
URL: https://github.com/llvm/llvm-project/commit/55ba1de7c516b7ef736a127e8fe38229da5aae1d
DIFF: https://github.com/llvm/llvm-project/commit/55ba1de7c516b7ef736a127e8fe38229da5aae1d.diff
LOG: [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
Added:
Modified:
llvm/lib/Target/X86/X86LowerAMXType.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86LowerAMXType.cpp b/llvm/lib/Target/X86/X86LowerAMXType.cpp
index 29f7c90f09350..719cd532fc01b 100644
--- a/llvm/lib/Target/X86/X86LowerAMXType.cpp
+++ b/llvm/lib/Target/X86/X86LowerAMXType.cpp
@@ -175,25 +175,8 @@ class X86LowerAMXType {
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
// -->
More information about the llvm-commits
mailing list