We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25bf341 commit dce5f8bCopy full SHA for dce5f8b
enzyme/Enzyme/EnzymeLogic.cpp
@@ -323,7 +323,8 @@ struct CacheAnalysis {
323
324
if (check) {
325
auto lsub = SE.getMinusSCEV(slim, SE.getAddExpr(lim, TS));
326
- if (SE.isKnownNonNegative(lsub)) {
+ if (lsub != SE.getCouldNotCompute() &&
327
+ SE.isKnownNonNegative(lsub)) {
328
return false;
329
}
330
@@ -384,7 +385,8 @@ struct CacheAnalysis {
384
385
386
387
auto lsub = SE.getMinusSCEV(lim, SE.getAddExpr(slim, TS));
388
389
390
391
392
0 commit comments