Skip to content

Commit 17552ab

Browse files
committed
[NFC] Applying clang-format
1 parent f265a4a commit 17552ab

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

llvm/include/llvm/Analysis/DependenceAnalysis.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace llvm {
8282
/// Dependence::DVEntry - Each level in the distance/direction vector
8383
/// has a direction (or perhaps a union of several directions), and
8484
/// perhaps a distance.
85-
/// The dependency information could be across a single loop level or across
85+
/// The dependency information could be across a single loop level or across
8686
/// two separate levels that are similar. Two levels are considered similar
8787
/// if they can be interpreted as a single fused loop, i.e., have the same
8888
/// trip count and the same nesting depth.
@@ -578,8 +578,8 @@ namespace llvm {
578578
/// This lets us allocate vectors MaxLevels in length, with room for every
579579
/// distinct loop referenced in both the source and destination subscripts.
580580
/// The variable SrcLevels is the nesting depth of the source instruction.
581-
/// It's used to help calculate distinct loops referenced by the destination.
582-
/// Here's the map from loops to levels:
581+
/// It's used to help calculate distinct loops referenced by the
582+
/// destination. Here's the map from loops to levels:
583583
/// 0 - unused
584584
/// 1 - outermost common loop
585585
/// ... - other common loops

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,8 @@ void Dependence::dumpImp(raw_ostream &OS, bool Separate) const {
703703
unsigned SeparateLevels = getSeparateLevels();
704704
bool OnSeparates = false;
705705
unsigned LevelNum = Levels;
706-
if (Separate) LevelNum += SeparateLevels;
706+
if (Separate)
707+
LevelNum += SeparateLevels;
707708
OS << " [";
708709
for (unsigned II = 1; II <= LevelNum; ++II) {
709710
if (!OnSeparates && inSeparateLoops(II))
@@ -1825,13 +1826,10 @@ bool isRemainderZero(const SCEVConstant *Dividend,
18251826
// (see also weakZeroDstSIVtest)
18261827
//
18271828
// Return true if dependence disproved.
1828-
bool DependenceInfo::weakZeroSrcSIVtest(const SCEV *DstCoeff,
1829-
const SCEV *SrcConst,
1830-
const SCEV *DstConst,
1831-
const Loop *CurSrcLoop,
1832-
const Loop *CurDstLoop, unsigned Level,
1833-
FullDependence &Result,
1834-
Constraint &NewConstraint) const {
1829+
bool DependenceInfo::weakZeroSrcSIVtest(
1830+
const SCEV *DstCoeff, const SCEV *SrcConst, const SCEV *DstConst,
1831+
const Loop *CurSrcLoop, const Loop *CurDstLoop, unsigned Level,
1832+
FullDependence &Result, Constraint &NewConstraint) const {
18351833
// For the WeakSIV test, it's possible the loop isn't common to
18361834
// the Src and Dst loops. If it isn't, then there's no need to
18371835
// record a direction.
@@ -1936,13 +1934,10 @@ bool DependenceInfo::weakZeroSrcSIVtest(const SCEV *DstCoeff,
19361934
// (see also weakZeroSrcSIVtest)
19371935
//
19381936
// Return true if dependence disproved.
1939-
bool DependenceInfo::weakZeroDstSIVtest(const SCEV *SrcCoeff,
1940-
const SCEV *SrcConst,
1941-
const SCEV *DstConst,
1942-
const Loop *CurSrcLoop,
1943-
const Loop *CurDstLoop, unsigned Level,
1944-
FullDependence &Result,
1945-
Constraint &NewConstraint) const {
1937+
bool DependenceInfo::weakZeroDstSIVtest(
1938+
const SCEV *SrcCoeff, const SCEV *SrcConst, const SCEV *DstConst,
1939+
const Loop *CurSrcLoop, const Loop *CurDstLoop, unsigned Level,
1940+
FullDependence &Result, Constraint &NewConstraint) const {
19461941
// For the WeakSIV test, it's possible the loop isn't common to the
19471942
// Src and Dst loops. If it isn't, then there's no need to record a direction.
19481943
LLVM_DEBUG(dbgs() << "\tWeak-Zero (dst) SIV test\n");
@@ -2015,7 +2010,6 @@ bool DependenceInfo::weakZeroDstSIVtest(const SCEV *SrcCoeff,
20152010
return false;
20162011
}
20172012

2018-
20192013
// exactRDIVtest - Tests the RDIV subscript pair for dependence.
20202014
// Things of the form [c1 + a*i] and [c2 + b*j],
20212015
// where i and j are induction variable, c1 and c2 are loop invariant,

0 commit comments

Comments
 (0)