Commit 267865a
authored
[SCEV] Factor out utility for proving same sign of two SCEVs [nfc] (#170376)
This is a slightly different API than ConstantRange's
areInsensitiveToSignednessOfICmpPredicate. The only actual difference
(beyond naming) is the handling of empty ranges (i.e. unreachable code).
I wanted to keep the existing SCEV behavior for the unreachable code as
we should be folding that to poison, not reasoning about samesign. I
tried the other variant locally, and saw no test changes.1 parent ccd4e7b commit 267865a
File tree
2 files changed
+9
-2
lines changed- llvm
- include/llvm/Analysis
- lib/Analysis
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11115 | 11115 | | |
11116 | 11116 | | |
11117 | 11117 | | |
| 11118 | + | |
| 11119 | + | |
| 11120 | + | |
| 11121 | + | |
| 11122 | + | |
11118 | 11123 | | |
11119 | 11124 | | |
11120 | 11125 | | |
| |||
12034 | 12039 | | |
12035 | 12040 | | |
12036 | 12041 | | |
12037 | | - | |
12038 | | - | |
| 12042 | + | |
12039 | 12043 | | |
12040 | 12044 | | |
12041 | 12045 | | |
| |||
0 commit comments