File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
llvm/test/Analysis/ScalarEvolution Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,23 @@ define i32 @ashr(i32 %a) {
21
21
ret i32 %ashr
22
22
}
23
23
24
+ ; Highlight the fact that non-argument non-instructions are
25
+ ; also possible.
26
+ @G = external global i8
27
+ define i64 @ashr_global () {
28
+ ; CHECK-LABEL: 'ashr_global'
29
+ ; CHECK-NEXT: Classifying expressions for: @ashr_global
30
+ ; CHECK-NEXT: %ashr = ashr i64 ptrtoint (i8* @G to i64), 63
31
+ ; CHECK-NEXT: --> %ashr U: [-1,1) S: [-1,1)
32
+ ; CHECK-NEXT: Determining loop execution counts for: @ashr_global
33
+ ;
34
+ %ashr = ashr i64 ptrtoint (i8* @G to i64 ), 63
35
+ %pos = icmp sge i8* @G , null
36
+ call void @llvm.assume (i1 %pos )
37
+ ret i64 %ashr
38
+ }
39
+
40
+
24
41
define i32 @shl (i32 %a ) {
25
42
; CHECK-LABEL: 'shl'
26
43
; CHECK-NEXT: Classifying expressions for: @shl
You can’t perform that action at this time.
0 commit comments