From 61683a22cb2a0606336f2bac691bb20758c669c9 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 13 Sep 2016 13:08:53 +0000 Subject: [PATCH] Don't use else if after return. Tidy comments. NFC. llvm-svn: 281331 --- llvm/lib/Transforms/Scalar/LoopInterchange.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp index 5a9f0fb..0265349 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; -- 2.7.4