Files
clang-p2996/mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp
Felix Schneider b78883fc6d [mlir][intrange] Fix inference of zero-trip loop bound (#96429)
When lower bound and exclusive upper bound of a loop are the same, and
the zero-trip loop is not canonicalized away before the analysis, this
leads to a meaningless range for the induction variable being inferred.
This patch adds a check to make sure that the inferred range for the IV
is meaningful before updating the analysis state.

Fix https://github.com/llvm/llvm-project/issues/94423
2024-06-24 08:05:04 +02:00

8.5 KiB