[ISLTools/ZoneAlgo] Make distributeDomain and filterKnownValInst isl_error_quota...
authorMichael Kruse <llvm@meinersbur.de>
Wed, 9 Aug 2017 11:21:40 +0000 (11:21 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 9 Aug 2017 11:21:40 +0000 (11:21 +0000)
commit630fc7b82a1150c87bee48b7ea9a0ec76f89f723
treed589b45fcc9a791f9a7a374441148b1568b48767
parentc6be2251b7e9bbced533b13027eeaab83e166bc5
[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.

llvm-svn: 310461
polly/lib/Support/ISLTools.cpp
polly/lib/Transform/ZoneAlgo.cpp