[ISLTools/ZoneAlgo] Make distributeDomain and filterKnownValInst isl_error_quota...
commitf3927722a903a246f3429214b94f2d50440142dc
authorMichael Kruse <llvm@meinersbur.de>
Wed, 9 Aug 2017 11:21:40 +0000 (9 11:21 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 9 Aug 2017 11:21:40 +0000 (9 11:21 +0000)
tree0c2108b631473776b6e1e3c2f835de98901333b7
parentb71f444dfc096f3003c2fc5c60805ce486fb394d
[ISLTools/ZoneAlgo] Make distributeDomain and filterKnownValInst isl_error_quota proof.

distributeDomain() and filterKnownValInst() are used in a scop
of ForwardOpTree that limits the number of isl operations.
Therefore some isl functions may return null after any operation.

Remove assertion that assume non-null results and handle
isl_*_foreach returning isl::stat::error.

I hope this fixes the crash of the asop buildbot at ihevc_recon.c.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@310461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/ISLTools.cpp
lib/Transform/ZoneAlgo.cpp