diff options
Diffstat (limited to 'llvm/lib/Analysis/DependenceAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/DependenceAnalysis.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp index 92d29a5..1bce9aa 100644 --- a/llvm/lib/Analysis/DependenceAnalysis.cpp +++ b/llvm/lib/Analysis/DependenceAnalysis.cpp @@ -1379,8 +1379,8 @@ bool DependenceInfo::weakCrossingSIVtest( LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); NewConstraint.setLine(Coeff, Coeff, Delta, CurLoop); if (Delta->isZero()) { - Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::LT); - Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::GT); + Result.DV[Level].Direction &= ~Dependence::DVEntry::LT; + Result.DV[Level].Direction &= ~Dependence::DVEntry::GT; ++WeakCrossingSIVsuccesses; if (!Result.DV[Level].Direction) { ++WeakCrossingSIVindependence; @@ -1439,8 +1439,8 @@ bool DependenceInfo::weakCrossingSIVtest( } if (isKnownPredicate(CmpInst::ICMP_EQ, Delta, ML)) { // i = i' = UB - Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::LT); - Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::GT); + Result.DV[Level].Direction &= ~Dependence::DVEntry::LT; + Result.DV[Level].Direction &= ~Dependence::DVEntry::GT; ++WeakCrossingSIVsuccesses; if (!Result.DV[Level].Direction) { ++WeakCrossingSIVindependence; @@ -1473,7 +1473,7 @@ bool DependenceInfo::weakCrossingSIVtest( LLVM_DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); if (Remainder != 0) { // Equal direction isn't possible - Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::EQ); + Result.DV[Level].Direction &= ~Dependence::DVEntry::EQ; ++WeakCrossingSIVsuccesses; } return false; @@ -2557,7 +2557,7 @@ bool DependenceInfo::gcdMIVtest(const SCEV *Src, const SCEV *Dst, LLVM_DEBUG(dbgs() << "\tRemainder = " << Remainder << "\n"); if (Remainder != 0) { unsigned Level = mapSrcLoop(CurLoop); - Result.DV[Level - 1].Direction &= unsigned(~Dependence::DVEntry::EQ); + Result.DV[Level - 1].Direction &= ~Dependence::DVEntry::EQ; Improved = true; } } |