[llvm] 61abcb0 - [GlobalISel] Remove valueIsSplit (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 19:51:08 PDT 2022
Author: Kazu Hirata
Date: 2022-06-05T19:51:03-07:00
New Revision: 61abcb0b3733f8f25d22f524371a51044795f192
URL: https://github.com/llvm/llvm-project/commit/61abcb0b3733f8f25d22f524371a51044795f192
DIFF: https://github.com/llvm/llvm-project/commit/61abcb0b3733f8f25d22f524371a51044795f192.diff
LOG: [GlobalISel] Remove valueIsSplit (NFC)
The last use was removed on Jun 27, 2019 in commit
8138996128cd17d78d9d3e6ef7b49987565cb310.
Added:
Modified:
llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
index 1453830ec9684..5e7428a5edc5b 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
@@ -247,12 +247,6 @@ class IRTranslator : public MachineFunctionPass {
bool translateInlineAsm(const CallBase &CB, MachineIRBuilder &MIRBuilder);
- /// Returns true if the value should be split into multiple LLTs.
- /// If \p Offsets is given then the split type's offsets will be stored in it.
- /// If \p Offsets is not empty it will be cleared first.
- bool valueIsSplit(const Value &V,
- SmallVectorImpl<uint64_t> *Offsets = nullptr);
-
/// Common code for translating normal calls or invokes.
bool translateCallBase(const CallBase &CB, MachineIRBuilder &MIRBuilder);
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 77ae418e1a7bb..de5ccb261e555 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -2950,15 +2950,6 @@ void IRTranslator::finishPendingPhis() {
}
}
-bool IRTranslator::valueIsSplit(const Value &V,
- SmallVectorImpl<uint64_t> *Offsets) {
- SmallVector<LLT, 4> SplitTys;
- if (Offsets && !Offsets->empty())
- Offsets->clear();
- computeValueLLTs(*DL, *V.getType(), SplitTys, Offsets);
- return SplitTys.size() > 1;
-}
-
bool IRTranslator::translate(const Instruction &Inst) {
CurBuilder->setDebugLoc(Inst.getDebugLoc());
More information about the llvm-commits
mailing list