Skip to content

Commit aa399bb

Browse files
committed
Formatting
1 parent a6c2f9a commit aa399bb

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

llvm/include/llvm/Analysis/CachedBitsValue.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
#include "llvm/Support/KnownBits.h"
2020
#include <type_traits>
2121

22-
2322
namespace llvm {
24-
struct SimplifyQuery;
23+
struct SimplifyQuery;
2524
}
2625

2726
llvm::KnownBits computeKnownBits(const llvm::Value *V, unsigned Depth,

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ void llvm::computeKnownBits(const Value *V, const APInt &DemandedElts,
180180
}
181181

182182
KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
183-
unsigned Depth, const SimplifyQuery &Q);
183+
unsigned Depth, const SimplifyQuery &Q);
184184

185185
KnownBits computeKnownBits(const Value *V, unsigned Depth,
186-
const SimplifyQuery &Q);
186+
const SimplifyQuery &Q);
187187

188188
KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL,
189189
unsigned Depth, AssumptionCache *AC,
@@ -256,9 +256,8 @@ bool llvm::haveNoCommonBitsSet(const WithCache<const Value *> &LHSCache,
256256
return true;
257257
}
258258

259-
return KnownBits::haveNoCommonBitsSet(
260-
LHSCache.getKnownBits(SQ),
261-
RHSCache.getKnownBits(SQ));
259+
return KnownBits::haveNoCommonBitsSet(LHSCache.getKnownBits(SQ),
260+
RHSCache.getKnownBits(SQ));
262261
}
263262

264263
bool llvm::isOnlyUsedInZeroEqualityComparison(const Instruction *I) {
@@ -1788,7 +1787,7 @@ static void computeKnownBitsFromOperator(const Operator *I,
17881787
/// Determine which bits of V are known to be either zero or one and return
17891788
/// them.
17901789
KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
1791-
unsigned Depth, const SimplifyQuery &Q) {
1790+
unsigned Depth, const SimplifyQuery &Q) {
17921791
KnownBits Known(getBitWidth(V->getType(), Q.DL));
17931792
computeKnownBits(V, DemandedElts, Known, Depth, Q);
17941793
return Known;
@@ -1797,7 +1796,7 @@ KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts,
17971796
/// Determine which bits of V are known to be either zero or one and return
17981797
/// them.
17991798
KnownBits computeKnownBits(const Value *V, unsigned Depth,
1800-
const SimplifyQuery &Q) {
1799+
const SimplifyQuery &Q) {
18011800
KnownBits Known(getBitWidth(V->getType(), Q.DL));
18021801
computeKnownBits(V, Known, Depth, Q);
18031802
return Known;

0 commit comments

Comments
 (0)