Skip to content

Commit 21ef00f

Browse files
committed
[NFC] Applying clang-format
1 parent ede8ec2 commit 21ef00f

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

llvm/include/llvm/Analysis/DependenceAnalysis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,13 +1826,10 @@ bool isRemainderZero(const SCEVConstant *Dividend,
18261826
// (see also weakZeroDstSIVtest)
18271827
//
18281828
// Return true if dependence disproved.
1829-
bool DependenceInfo::weakZeroSrcSIVtest(const SCEV *DstCoeff,
1830-
const SCEV *SrcConst,
1831-
const SCEV *DstConst,
1832-
const Loop *CurSrcLoop,
1833-
const Loop *CurDstLoop, unsigned Level,
1834-
FullDependence &Result,
1835-
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 {
18361833
// For the WeakSIV test, it's possible the loop isn't common to
18371834
// the Src and Dst loops. If it isn't, then there's no need to
18381835
// record a direction.
@@ -1937,13 +1934,10 @@ bool DependenceInfo::weakZeroSrcSIVtest(const SCEV *DstCoeff,
19371934
// (see also weakZeroSrcSIVtest)
19381935
//
19391936
// Return true if dependence disproved.
1940-
bool DependenceInfo::weakZeroDstSIVtest(const SCEV *SrcCoeff,
1941-
const SCEV *SrcConst,
1942-
const SCEV *DstConst,
1943-
const Loop *CurSrcLoop,
1944-
const Loop *CurDstLoop, unsigned Level,
1945-
FullDependence &Result,
1946-
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 {
19471941
// For the WeakSIV test, it's possible the loop isn't common to the
19481942
// Src and Dst loops. If it isn't, then there's no need to record a direction.
19491943
LLVM_DEBUG(dbgs() << "\tWeak-Zero (dst) SIV test\n");
@@ -2016,7 +2010,6 @@ bool DependenceInfo::weakZeroDstSIVtest(const SCEV *SrcCoeff,
20162010
return false;
20172011
}
20182012

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

0 commit comments

Comments
 (0)