Skip to content

Commit 110dfb4

Browse files
committed
[test] Precommit SCEV test
1 parent 1716924 commit 110dfb4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 2
2+
; RUN: opt -passes='print<scalar-evolution>' -disable-output %s 2>&1 | FileCheck %s
3+
4+
define ptr @f() {
5+
; CHECK-LABEL: 'f'
6+
; CHECK-NEXT: Classifying expressions for: @f
7+
; CHECK-NEXT: %alloc = tail call dereferenceable(64) ptr @malloc(i64 64)
8+
; CHECK-NEXT: --> %alloc U: full-set S: full-set
9+
; CHECK-NEXT: Determining loop execution counts for: @f
10+
;
11+
%alloc = tail call dereferenceable(64) ptr @malloc(i64 64)
12+
ret ptr %alloc
13+
}
14+
15+
define ptr @f2() {
16+
; CHECK-LABEL: 'f2'
17+
; CHECK-NEXT: Classifying expressions for: @f2
18+
; CHECK-NEXT: %alloc = tail call dereferenceable_or_null(64) ptr @malloc(i64 64)
19+
; CHECK-NEXT: --> %alloc U: full-set S: full-set
20+
; CHECK-NEXT: Determining loop execution counts for: @f2
21+
;
22+
%alloc = tail call dereferenceable_or_null(64) ptr @malloc(i64 64)
23+
ret ptr %alloc
24+
}
25+
26+
declare noalias noundef ptr @malloc(i64 noundef) allockind("alloc,uninitialized") allocsize(0)

0 commit comments

Comments
 (0)