nullptr is not a valid affine expression, and none of the callers check for null, so we eventually hit an isl error and crash.
Instead, invalidate the scop and return a constant zero.
Paths
| Differential D46445
[SCEVAffinator] Fix handling of pwaff complexity limit. ClosedPublic Authored by efriedma on May 4 2018, 11:53 AM.
Details Summary nullptr is not a valid affine expression, and none of the callers check for null, so we eventually hit an isl error and crash. Instead, invalidate the scop and return a constant zero.
Diff Detail
Event TimelineComment Actions This generally looks good, but I agree we should move the code to a separate function. This revision is now accepted and ready to land.May 9 2018, 10:03 PM Meinersbur added inline comments.
Closed by commit rL332309: [SCEVAffinator] Fix handling of pwaff complexity limit. (authored by efriedma). · Explain WhyMay 14 2018, 4:09 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 146716 polly/trunk/include/polly/Support/SCEVAffinator.h
polly/trunk/lib/Support/SCEVAffinator.cpp
polly/trunk/test/ScopInfo/pwaff-complexity-bailout.ll
|