diff options
| author | Sebastian Pop <spop@codeaurora.org> | 2012-10-12 02:04:32 +0000 |
|---|---|---|
| committer | Sebastian Pop <spop@codeaurora.org> | 2012-10-12 02:04:32 +0000 |
| commit | e9623261ad135af13248f4acd94e5ea1cbb30303 (patch) | |
| tree | 8652016acaeb4f24296800afa34f22aa1cc60961 /llvm/lib | |
| parent | cf11c59e2fad9490826cd3ba9a8913961373dc70 (diff) | |
| download | bcm5719-llvm-e9623261ad135af13248f4acd94e5ea1cbb30303.tar.gz bcm5719-llvm-e9623261ad135af13248f4acd94e5ea1cbb30303.zip | |
fix warning
DependenceAnalysis.cpp:1164:32: warning: implicit truncation from 'int' to bitfield changes value from -5 to 3
[-Wconstant-conversion]
Result.DV[Level].Direction &= ~Dependence::DVEntry::GT;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Patch from Preston Briggs <preston.briggs@gmail.com>.
llvm-svn: 165784
Diffstat (limited to 'llvm/lib')
| -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 c7bec4323c4..016fe396e7d 100644 --- a/llvm/lib/Analysis/DependenceAnalysis.cpp +++ b/llvm/lib/Analysis/DependenceAnalysis.cpp @@ -1160,8 +1160,8 @@ bool DependenceAnalysis::weakCrossingSIVtest(const SCEV *Coeff, DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); NewConstraint.setLine(Coeff, Coeff, Delta, CurLoop); if (Delta->isZero()) { - Result.DV[Level].Direction &= ~Dependence::DVEntry::LT; - Result.DV[Level].Direction &= ~Dependence::DVEntry::GT; + Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::LT); + Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::GT); ++WeakCrossingSIVsuccesses; if (!Result.DV[Level].Direction) { ++WeakCrossingSIVindependence; @@ -1222,8 +1222,8 @@ bool DependenceAnalysis::weakCrossingSIVtest(const SCEV *Coeff, } if (isKnownPredicate(CmpInst::ICMP_EQ, Delta, ML)) { // i = i' = UB - Result.DV[Level].Direction &= ~Dependence::DVEntry::LT; - Result.DV[Level].Direction &= ~Dependence::DVEntry::GT; + Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::LT); + Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::GT); ++WeakCrossingSIVsuccesses; if (!Result.DV[Level].Direction) { ++WeakCrossingSIVindependence; @@ -1256,7 +1256,7 @@ bool DependenceAnalysis::weakCrossingSIVtest(const SCEV *Coeff, DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); if (Remainder != 0) { // Equal direction isn't possible - Result.DV[Level].Direction &= ~Dependence::DVEntry::EQ; + Result.DV[Level].Direction &= unsigned(~Dependence::DVEntry::EQ); ++WeakCrossingSIVsuccesses; } return false; @@ -2380,7 +2380,7 @@ bool DependenceAnalysis::gcdMIVtest(const SCEV *Src, DEBUG(dbgs() << "\tRemainder = " << Remainder << "\n"); if (Remainder != 0) { unsigned Level = mapSrcLoop(CurLoop); - Result.DV[Level - 1].Direction &= ~Dependence::DVEntry::EQ; + Result.DV[Level - 1].Direction &= unsigned(~Dependence::DVEntry::EQ); Improved = true; } } |

