brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 3655120 Raw
38 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 22; RUN: opt -passes='print<scalar-evolution>' -disable-output %s 2>&1 | FileCheck %s3 4define ptr @f() {5; CHECK-LABEL: 'f'6; CHECK-NEXT:  Classifying expressions for: @f7; CHECK-NEXT:    %alloc = tail call dereferenceable(64) ptr @malloc(i64 64)8; CHECK-NEXT:    --> %alloc U: [1,-64) S: full-set9; CHECK-NEXT:  Determining loop execution counts for: @f10;11  %alloc = tail call dereferenceable(64) ptr @malloc(i64 64)12  ret ptr %alloc13}14 15define ptr @f2() {16; CHECK-LABEL: 'f2'17; CHECK-NEXT:  Classifying expressions for: @f218; CHECK-NEXT:    %alloc = tail call dereferenceable_or_null(64) ptr @malloc(i64 64)19; CHECK-NEXT:    --> %alloc U: [0,-64) S: full-set20; CHECK-NEXT:  Determining loop execution counts for: @f221;22  %alloc = tail call dereferenceable_or_null(64) ptr @malloc(i64 64)23  ret ptr %alloc24}25 26define ptr @undefined_max() {27; CHECK-LABEL: 'undefined_max'28; CHECK-NEXT:  Classifying expressions for: @undefined_max29; CHECK-NEXT:    %alloc = call nonnull ptr @malloc(i64 -1)30; CHECK-NEXT:    --> %alloc U: full-set S: full-set31; CHECK-NEXT:  Determining loop execution counts for: @undefined_max32;33  %alloc = call nonnull ptr @malloc(i64 -1)34  ret ptr %alloc35}36 37declare noalias noundef ptr @malloc(i64 noundef) allockind("alloc,uninitialized") allocsize(0)38