brintos

brintos / llvm-project-archived public Read only

0
0
Text · 407 B · f2fc55c Raw
12 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -passes=dce -S --enable-knowledge-retention < %s | FileCheck %s3 4define void @test(ptr %P) {5; CHECK-LABEL: @test(6; CHECK-NEXT:    call void @llvm.assume(i1 true) [ "dereferenceable"(ptr [[P:%.*]], i64 4), "nonnull"(ptr [[P]]), "align"(ptr [[P]], i64 4) ]7; CHECK-NEXT:    ret void8;9  %a = load i32, ptr %P10  ret void11}12