Skip to content

Commit 526002d

Browse files
committed
[NFC] Applying clang-format
1 parent c68f98a commit 526002d

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
@@ -580,8 +580,8 @@ namespace llvm {
580580
/// This lets us allocate vectors MaxLevels in length, with room for every
581581
/// distinct loop referenced in both the source and destination subscripts.
582582
/// The variable SrcLevels is the nesting depth of the source instruction.
583-
/// It's used to help calculate distinct loops referenced by the destination.
584-
/// Here's the map from loops to levels:
583+
/// It's used to help calculate distinct loops referenced by the
584+
/// destination. Here's the map from loops to levels:
585585
/// 0 - unused
586586
/// 1 - outermost common loop
587587
/// ... - other common loops

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,13 +1836,10 @@ bool isRemainderZero(const SCEVConstant *Dividend,
18361836
// (see also weakZeroDstSIVtest)
18371837
//
18381838
// Return true if dependence disproved.
1839-
bool DependenceInfo::weakZeroSrcSIVtest(const SCEV *DstCoeff,
1840-
const SCEV *SrcConst,
1841-
const SCEV *DstConst,
1842-
const Loop *CurSrcLoop,
1843-
const Loop *CurDstLoop, unsigned Level,
1844-
FullDependence &Result,
1845-
Constraint &NewConstraint) const {
1839+
bool DependenceInfo::weakZeroSrcSIVtest(
1840+
const SCEV *DstCoeff, const SCEV *SrcConst, const SCEV *DstConst,
1841+
const Loop *CurSrcLoop, const Loop *CurDstLoop, unsigned Level,
1842+
FullDependence &Result, Constraint &NewConstraint) const {
18461843
// For the WeakSIV test, it's possible the loop isn't common to
18471844
// the Src and Dst loops. If it isn't, then there's no need to
18481845
// record a direction.
@@ -1947,13 +1944,10 @@ bool DependenceInfo::weakZeroSrcSIVtest(const SCEV *DstCoeff,
19471944
// (see also weakZeroSrcSIVtest)
19481945
//
19491946
// Return true if dependence disproved.
1950-
bool DependenceInfo::weakZeroDstSIVtest(const SCEV *SrcCoeff,
1951-
const SCEV *SrcConst,
1952-
const SCEV *DstConst,
1953-
const Loop *CurSrcLoop,
1954-
const Loop *CurDstLoop, unsigned Level,
1955-
FullDependence &Result,
1956-
Constraint &NewConstraint) const {
1947+
bool DependenceInfo::weakZeroDstSIVtest(
1948+
const SCEV *SrcCoeff, const SCEV *SrcConst, const SCEV *DstConst,
1949+
const Loop *CurSrcLoop, const Loop *CurDstLoop, unsigned Level,
1950+
FullDependence &Result, Constraint &NewConstraint) const {
19571951
// For the WeakSIV test, it's possible the loop isn't common to the
19581952
// Src and Dst loops. If it isn't, then there's no need to record a direction.
19591953
LLVM_DEBUG(dbgs() << "\tWeak-Zero (dst) SIV test\n");
@@ -2026,7 +2020,6 @@ bool DependenceInfo::weakZeroDstSIVtest(const SCEV *SrcCoeff,
20262020
return false;
20272021
}
20282022

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

0 commit comments

Comments
 (0)