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.
Differential D46445
[SCEVAffinator] Fix handling of pwaff complexity limit. efriedma on May 4 2018, 11:53 AM. Authored by
Details 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 Timeline
Comment Actions This generally looks good, but I agree we should move the code to a separate function.
|
Move common code to separate function? :)