[polly] r249866 - Remove some unused variables in -Asserts builds
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 11:22:18 PDT 2015
Author: dblaikie
Date: Fri Oct 9 13:22:18 2015
New Revision: 249866
URL: http://llvm.org/viewvc/llvm-project?rev=249866&view=rev
Log:
Remove some unused variables in -Asserts builds
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=249866&r1=249865&r2=249866&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Oct 9 13:22:18 2015
@@ -2634,11 +2634,12 @@ void Scop::hoistInvariantLoads() {
isl_set *Dom1 = IA1.second;
int Dim0 = isl_set_find_dim_by_id(Dom0, isl_dim_param, Id0);
- int Dim1 = isl_set_find_dim_by_id(Dom0, isl_dim_param, Id1);
- bool Involves0Id1 = isl_set_involves_dims(Dom0, isl_dim_param, Dim1, 1);
bool Involves1Id0 = isl_set_involves_dims(Dom1, isl_dim_param, Dim0, 1);
- assert(!(Involves0Id1 && Involves1Id0));
+ assert(!Involves1Id0 ||
+ !isl_set_involves_dims(
+ Dom0, isl_dim_param,
+ isl_set_find_dim_by_id(Dom0, isl_dim_param, Id1), 1));
isl_id_free(Id0);
isl_id_free(Id1);
More information about the llvm-commits
mailing list