Mercurial > hg > CbC > CbC_llvm
view llvm/test/CodeGen/AMDGPU/simplify-libcalls2.ll @ 223:5f17cb93ff66 llvm-original
LLVM13 (2021/7/18)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:43:00 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
line wrap: on
line source
; REQUIRES: asserts ; RUN: opt -S -amdgpu-simplifylib -debug-only=amdgpu-simplifylib -mtriple=amdgcn-unknown-amdhsa -disable-output < %s 2>&1 | FileCheck %s ; RUN: opt -S -passes=amdgpu-simplifylib -debug-only=amdgpu-simplifylib -mtriple=amdgcn-unknown-amdhsa -disable-output < %s 2>&1 | FileCheck %s ; CHECK-NOT: AMDIC: try folding call void @llvm.lifetime.start.p0i8 ; CHECK-NOT: AMDIC: try folding call void @llvm.lifetime.end.p0i8 ; CHECK-NOT: AMDIC: try folding call void @llvm.dbg.value define void @foo(i32 %i) { call void @llvm.lifetime.start.p0i8(i64 1, i8* undef) call void @llvm.lifetime.end.p0i8(i64 1, i8* undef) call void @llvm.dbg.value(metadata i32 undef, metadata !DILocalVariable(name: "1", scope: !2), metadata !DIExpression()), !dbg !3 ret void } declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) declare void @llvm.dbg.value(metadata, metadata, metadata) !llvm.module.flags = !{!1} !0 = distinct !DICompileUnit(language: DW_LANG_C, file: !DIFile(filename: "1", directory: "1")) !1 = !{i32 2, !"Debug Info Version", i32 3} !2 = distinct !DISubprogram(unit: !0) !3 = !DILocation(line: 1, column: 1, scope: !2)