[polly] r252792 - [NFC] Simplify code
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 12:01:32 PST 2015
Author: jdoerfert
Date: Wed Nov 11 14:01:31 2015
New Revision: 252792
URL: http://llvm.org/viewvc/llvm-project?rev=252792&view=rev
Log:
[NFC] Simplify code
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=252792&r1=252791&r2=252792&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Nov 11 14:01:31 2015
@@ -2877,10 +2877,8 @@ bool Scop::hasFeasibleRuntimeContext() c
void Scop::addAssumption(__isl_take isl_set *Set) {
AssumedContext = isl_set_intersect(AssumedContext, Set);
- isl_basic_set_list *List = isl_set_get_basic_set_list(AssumedContext);
- int NSets = isl_basic_set_list_n_basic_set(List);
- isl_basic_set_list_free(List);
+ int NSets = isl_set_n_basic_set(AssumedContext);
if (NSets >= MaxDisjunctsAssumed) {
isl_space *Space = isl_set_get_space(AssumedContext);
isl_set_free(AssumedContext);
More information about the llvm-commits
mailing list