@@ -2955,7 +2955,7 @@ class ValueBits {
2955
2955
_RHS = new ValueBit (*VB._RHS );
2956
2956
}
2957
2957
}
2958
- ValueBit& operator =(const ValueBit &VB) {
2958
+ ValueBit & operator =(const ValueBit &VB) {
2959
2959
_Type = VB._Type ;
2960
2960
if (_Type == BitType::REF)
2961
2961
_BitRef = VB._BitRef ;
@@ -3272,8 +3272,8 @@ symbolicallyExecute(BasicBlock *BB,
3272
3272
}
3273
3273
}
3274
3274
assert (IncomingBlock);
3275
- ValueMap.insert ({&I,
3276
- getOrCreateValueBits ( PHI->getIncomingValueForBlock (IncomingBlock))});
3275
+ ValueMap.insert ({&I, getOrCreateValueBits (
3276
+ PHI->getIncomingValueForBlock (IncomingBlock))});
3277
3277
} break ;
3278
3278
case Instruction::Shl: {
3279
3279
ConstantInt *CI = getConstantOperand (&I, 1 );
@@ -3320,8 +3320,8 @@ symbolicallyExecute(BasicBlock *BB,
3320
3320
}
3321
3321
auto IfTrue = getOrCreateValueBits (Select->getTrueValue ());
3322
3322
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)});
3325
3325
} break ;
3326
3326
default :
3327
3327
// If this instruction is not recognized, then just continue. This is
@@ -3456,7 +3456,7 @@ bool LoopIdiomRecognize::recognizeCRC(const SCEV *BECount) {
3456
3456
// any unexpected loop variant operations happening, e.g. additional select
3457
3457
// logic or shifts, then this will be captured in the ValueBits.
3458
3458
std::map<Value *, std::shared_ptr<ValueBits>> ValueMap;
3459
-
3459
+
3460
3460
if (!symbolicallyExecute (CurLoop->getHeader (), ValueMap))
3461
3461
return false ;
3462
3462
@@ -3487,8 +3487,8 @@ bool LoopIdiomRecognize::recognizeCRC(const SCEV *BECount) {
3487
3487
// whether this is bit reversed CRC
3488
3488
ICmpInst *ICmp = CRCOutBitsPred->getPredicate ();
3489
3489
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 "
3492
3492
<< (CRC.BitReversed ? " LSB\n " : " MSB\n " ));
3493
3493
3494
3494
// Firstly check the LHS is in our map, and RHS is a constant
@@ -3620,7 +3620,8 @@ bool LoopIdiomRecognize::recognizeCRC(const SCEV *BECount) {
3620
3620
}
3621
3621
uint64_t GeneratorPolynomial =
3622
3622
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);
3624
3625
3625
3626
// Case where the MSB/LSB of the data is 0
3626
3627
PValueBits IfZero = CRC.BitReversed ? ValueBits::LShr (*CRCValueBits, 1 )
0 commit comments