[llvm] 17503be - [Hexagon] Remove HexagonVectorCombine::simplify
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 30 12:57:05 PDT 2022
Author: Kazu Hirata
Date: 2022-10-30T12:56:59-07:00
New Revision: 17503be455416926f56b93a2005d7290d4b2f182
URL: https://github.com/llvm/llvm-project/commit/17503be455416926f56b93a2005d7290d4b2f182
DIFF: https://github.com/llvm/llvm-project/commit/17503be455416926f56b93a2005d7290d4b2f182.diff
LOG: [Hexagon] Remove HexagonVectorCombine::simplify
This patch fixes:
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp:1554:6: warning:
‘llvm::Value*
{anonymous}::HexagonVectorCombine::simplify(llvm::Value*) const’
defined but not used [-Wunused-function]
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
index 6c116b569337f..4efea50ea7698 100644
--- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
@@ -103,8 +103,6 @@ class HexagonVectorCombine {
Constant *getFullValue(Type *Ty) const;
Constant *getConstSplat(Type *Ty, int Val) const;
- Value *simplify(Value *Val) const;
-
Value *insertb(IRBuilderBase &Builder, Value *Dest, Value *Src, int Start,
int Length, int Where) const;
Value *vlalignb(IRBuilderBase &Builder, Value *Lo, Value *Hi,
@@ -1551,14 +1549,6 @@ auto HexagonVectorCombine::getConstSplat(Type *Ty, int Val) const
return Splat;
}
-auto HexagonVectorCombine::simplify(Value *V) const -> Value * {
- if (auto *In = dyn_cast<Instruction>(V)) {
- SimplifyQuery Q(DL, &TLI, &DT, &AC, In);
- return simplifyInstruction(In, Q);
- }
- return nullptr;
-}
-
// Insert bytes [Start..Start+Length) of Src into Dst at byte Where.
auto HexagonVectorCombine::insertb(IRBuilderBase &Builder, Value *Dst,
Value *Src, int Start, int Length,
More information about the llvm-commits
mailing list