From 61abcb0b3733f8f25d22f524371a51044795f192 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 5 Jun 2022 19:51:02 -0700 Subject: [PATCH] [GlobalISel] Remove valueIsSplit (NFC) The last use was removed on Jun 27, 2019 in commit 8138996128cd17d78d9d3e6ef7b49987565cb310. --- llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h | 6 ------ llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 9 --------- 2 files changed, 15 deletions(-) diff --git a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h index 1453830ec968..5e7428a5edc5 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h @@ -247,12 +247,6 @@ private: 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 *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 77ae418e1a7b..de5ccb261e55 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 *Offsets) { - SmallVector 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());