Commit aa10137
committed
[SCEV] Factor out utility for proving same sign of two SCEVs [nfc]
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.
The new API will be reused in llvm#170363. I'll rebase whichever lands second over the first to land.1 parent 49a9787 commit aa10137
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