Commit a9f083d
[SCEV] Fix potentially empty set for unsigned ranges
The following commit enabled the analysis of ranges for heap allocations:
22ca38d
The range turns out to be empty in cases such as the one in test (which
is [1,1)), leading to an assertion failure. This patch fixes for the
same case.
Fixes #63856
Reviewed By: fhahn
Differential Revision: https://reviews.llvm.org/D159160
(cherry picked from commit 0609b65)1 parent 7a0ee8a commit a9f083d
File tree
2 files changed
+12
-1
lines changed- llvm
- lib/Analysis
- test/Analysis/ScalarEvolution
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6833 | 6833 | | |
6834 | 6834 | | |
6835 | 6835 | | |
6836 | | - | |
| 6836 | + | |
6837 | 6837 | | |
6838 | 6838 | | |
6839 | 6839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
0 commit comments