Skip to content

Commit 85b77d9

Browse files
committed
[CachedBitsValue] Remove unused functions
1 parent edb53d4 commit 85b77d9

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

llvm/include/llvm/Analysis/CachedBitsValue.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class Instruction;
2727
class DominatorTree;
2828
struct SimplifyQuery;
2929

30-
KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
31-
unsigned Depth, const SimplifyQuery &Q);
32-
3330
KnownBits computeKnownBits(const Value *V, unsigned Depth,
3431
const SimplifyQuery &Q);
3532

@@ -58,12 +55,6 @@ template <bool ConstPointer = true> class ImplCachedBitsValue {
5855
Pointer.setInt(true);
5956
}
6057

61-
void calculateKnownBits(const APInt &DemandedElts, unsigned Depth,
62-
const SimplifyQuery &Q) const {
63-
Known = computeKnownBits(Pointer.getPointer(), DemandedElts, Depth, Q);
64-
Pointer.setInt(false);
65-
}
66-
6758
public:
6859
ImplCachedBitsValue() = default;
6960
ImplCachedBitsValue(ValuePointerType Pointer)
@@ -96,22 +87,6 @@ template <bool ConstPointer = true> class ImplCachedBitsValue {
9687
return Known;
9788
}
9889

99-
[[nodiscard]] const KnownBits &getKnownBits(const APInt &DemandedElts,
100-
unsigned Depth,
101-
const SimplifyQuery &Q) const {
102-
if (!hasKnownBits())
103-
calculateKnownBits(DemandedElts, Depth, Q);
104-
return Known;
105-
}
106-
107-
[[nodiscard]] KnownBits &getKnownBits(const APInt &DemandedElts,
108-
unsigned Depth,
109-
const SimplifyQuery &Q) {
110-
if (!hasKnownBits())
111-
calculateKnownBits(DemandedElts, Depth, Q);
112-
return Known;
113-
}
114-
11590
[[nodiscard]] bool hasKnownBits() const { return Pointer.getInt(); }
11691

11792
operator ValuePointerType() { return Pointer.getPointer(); }

0 commit comments

Comments
 (0)