Skip to content

Commit 09510f5

Browse files
committed
Format code correctly
1 parent 969c48d commit 09510f5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,7 +2955,7 @@ class ValueBits {
29552955
_RHS = new ValueBit(*VB._RHS);
29562956
}
29572957
}
2958-
ValueBit& operator=(const ValueBit &VB) {
2958+
ValueBit &operator=(const ValueBit &VB) {
29592959
_Type = VB._Type;
29602960
if (_Type == BitType::REF)
29612961
_BitRef = VB._BitRef;
@@ -3272,8 +3272,8 @@ symbolicallyExecute(BasicBlock *BB,
32723272
}
32733273
}
32743274
assert(IncomingBlock);
3275-
ValueMap.insert({&I,
3276-
getOrCreateValueBits(PHI->getIncomingValueForBlock(IncomingBlock))});
3275+
ValueMap.insert({&I, getOrCreateValueBits(
3276+
PHI->getIncomingValueForBlock(IncomingBlock))});
32773277
} break;
32783278
case Instruction::Shl: {
32793279
ConstantInt *CI = getConstantOperand(&I, 1);
@@ -3320,8 +3320,8 @@ symbolicallyExecute(BasicBlock *BB,
33203320
}
33213321
auto IfTrue = getOrCreateValueBits(Select->getTrueValue());
33223322
auto IfFalse = getOrCreateValueBits(Select->getFalseValue());
3323-
ValueMap.insert({&I,
3324-
std::make_shared<PredicatedValueBits>(Cond, IfTrue, IfFalse)});
3323+
ValueMap.insert(
3324+
{&I, std::make_shared<PredicatedValueBits>(Cond, IfTrue, IfFalse)});
33253325
} break;
33263326
default:
33273327
// If this instruction is not recognized, then just continue. This is
@@ -3456,7 +3456,7 @@ bool LoopIdiomRecognize::recognizeCRC(const SCEV *BECount) {
34563456
// any unexpected loop variant operations happening, e.g. additional select
34573457
// logic or shifts, then this will be captured in the ValueBits.
34583458
std::map<Value *, std::shared_ptr<ValueBits>> ValueMap;
3459-
3459+
34603460
if (!symbolicallyExecute(CurLoop->getHeader(), ValueMap))
34613461
return false;
34623462

@@ -3487,8 +3487,8 @@ bool LoopIdiomRecognize::recognizeCRC(const SCEV *BECount) {
34873487
// whether this is bit reversed CRC
34883488
ICmpInst *ICmp = CRCOutBitsPred->getPredicate();
34893489
CmpInst::Predicate Pred = ICmp->getPredicate();
3490-
LLVM_DEBUG(dbgs() << DEBUG_TYPE << " CRCRecognize checking to see if " << *ICmp
3491-
<< " is checking the "
3490+
LLVM_DEBUG(dbgs() << DEBUG_TYPE << " CRCRecognize checking to see if "
3491+
<< *ICmp << " is checking the "
34923492
<< (CRC.BitReversed ? "LSB\n" : "MSB\n"));
34933493

34943494
// Firstly check the LHS is in our map, and RHS is a constant
@@ -3620,7 +3620,8 @@ bool LoopIdiomRecognize::recognizeCRC(const SCEV *BECount) {
36203620
}
36213621
uint64_t GeneratorPolynomial =
36223622
CRC.BitReversed ? reverseBits(CRC.Polynomial, CRCSize) : CRC.Polynomial;
3623-
PValueBits Polynomial = std::make_shared<ValueBits>(GeneratorPolynomial, CRCSize);
3623+
PValueBits Polynomial =
3624+
std::make_shared<ValueBits>(GeneratorPolynomial, CRCSize);
36243625

36253626
// Case where the MSB/LSB of the data is 0
36263627
PValueBits IfZero = CRC.BitReversed ? ValueBits::LShr(*CRCValueBits, 1)

0 commit comments

Comments
 (0)