File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
llvm/test/Analysis/ScalarEvolution Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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 )
You can’t perform that action at this time.
0 commit comments