diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-09-13 13:08:53 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-09-13 13:08:53 +0000 |
commit | 61683a22cb2a0606336f2bac691bb20758c669c9 (patch) | |
tree | c355d358d5205896fa9fdbd4c93862793e682cc3 /llvm/lib/Transforms/Scalar/LoopInterchange.cpp | |
parent | d18ea0654b76aff3f8b4db9ede9e7d9b5771a874 (diff) | |
download | bcm5719-llvm-61683a22cb2a0606336f2bac691bb20758c669c9.tar.gz bcm5719-llvm-61683a22cb2a0606336f2bac691bb20758c669c9.zip |
Don't use else if after return. Tidy comments. NFC.
llvm-svn: 281331
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopInterchange.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopInterchange.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp index 5a9f0fb80a9..02653491b86 100644 --- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp +++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp @@ -254,9 +254,8 @@ static bool validDepInterchange(CharMatrix &DepMatrix, unsigned Row, // Checks if it is legal to interchange 2 loops. // [Theorem] A permutation of the loops in a perfect nest is legal if and only -// if -// the direction matrix, after the same permutation is applied to its columns, -// has no ">" direction as the leftmost non-"=" direction in any row. +// if the direction matrix, after the same permutation is applied to its +// columns, has no ">" direction as the leftmost non-"=" direction in any row. static bool isLegalToInterChangeLoops(CharMatrix &DepMatrix, unsigned InnerLoopId, unsigned OuterLoopId) { @@ -268,8 +267,7 @@ static bool isLegalToInterChangeLoops(CharMatrix &DepMatrix, char OuterDep = DepMatrix[Row][OuterLoopId]; if (InnerDep == '*' || OuterDep == '*') return false; - else if (!validDepInterchange(DepMatrix, Row, OuterLoopId, InnerDep, - OuterDep)) + if (!validDepInterchange(DepMatrix, Row, OuterLoopId, InnerDep, OuterDep)) return false; } return true; |