@@ -27,9 +27,6 @@ class Instruction;
27
27
class DominatorTree ;
28
28
struct SimplifyQuery ;
29
29
30
- KnownBits computeKnownBits (const Value *V, const APInt &DemandedElts,
31
- unsigned Depth, const SimplifyQuery &Q);
32
-
33
30
KnownBits computeKnownBits (const Value *V, unsigned Depth,
34
31
const SimplifyQuery &Q);
35
32
@@ -58,12 +55,6 @@ template <bool ConstPointer = true> class ImplCachedBitsValue {
58
55
Pointer.setInt (true );
59
56
}
60
57
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
-
67
58
public:
68
59
ImplCachedBitsValue () = default ;
69
60
ImplCachedBitsValue (ValuePointerType Pointer)
@@ -96,22 +87,6 @@ template <bool ConstPointer = true> class ImplCachedBitsValue {
96
87
return Known;
97
88
}
98
89
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
-
115
90
[[nodiscard]] bool hasKnownBits () const { return Pointer.getInt (); }
116
91
117
92
operator ValuePointerType () { return Pointer.getPointer (); }
0 commit comments