brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 1fe5f71 Raw
54 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22;; Check the cases involving internal CFI instrumented functions where we do not expect functions to be merged.3; RUN: opt -S -passes=mergefunc < %s | FileCheck %s4 5; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn6declare i1 @llvm.type.test(ptr, metadata) #67 8define internal void @A__on_zero_sharedEv(ptr noundef nonnull align 8 dereferenceable(32) %this) {9; CHECK-LABEL: define internal void @A__on_zero_sharedEv10; CHECK-SAME: (ptr noundef nonnull align 8 dereferenceable(32) [[THIS:%.*]]) {11; CHECK-NEXT:  entry:12; CHECK-NEXT:    [[THIS_ADDR:%.*]] = alloca ptr, align 813; CHECK-NEXT:    store ptr [[THIS]], ptr [[THIS_ADDR]], align 814; CHECK-NEXT:    [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 815; CHECK-NEXT:    [[VTABLE:%.*]] = load ptr, ptr [[THIS1]], align 816; CHECK-NEXT:    [[TMP0:%.*]] = call i1 @llvm.type.test(ptr [[VTABLE]], metadata [[META0:![0-9]+]]), !nosanitize !117; CHECK-NEXT:    ret void18;19entry:20  %this.addr = alloca ptr, align 821  store ptr %this, ptr %this.addr, align 822  %this1 = load ptr, ptr %this.addr, align 823  %vtable = load ptr, ptr %this1, align 824  %0 = call i1 @llvm.type.test(ptr %vtable, metadata !11), !nosanitize !4725  ret void26}27 28; Function Attrs: mustprogress noinline nounwind optnone uwtable29define internal void @B__on_zero_sharedEv(ptr noundef nonnull align 8 dereferenceable(32) %this) {30; CHECK-LABEL: define internal void @B__on_zero_sharedEv31; CHECK-SAME: (ptr noundef nonnull align 8 dereferenceable(32) [[THIS:%.*]]) {32; CHECK-NEXT:  entry:33; CHECK-NEXT:    [[THIS_ADDR:%.*]] = alloca ptr, align 834; CHECK-NEXT:    store ptr [[THIS]], ptr [[THIS_ADDR]], align 835; CHECK-NEXT:    [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]], align 836; CHECK-NEXT:    [[VTABLE:%.*]] = load ptr, ptr [[THIS1]], align 837; CHECK-NEXT:    [[TMP0:%.*]] = call i1 @llvm.type.test(ptr [[VTABLE]], metadata [[META2:![0-9]+]]), !nosanitize !138; CHECK-NEXT:    ret void39;40entry:41  %this.addr = alloca ptr, align 842  store ptr %this, ptr %this.addr, align 843  %this1 = load ptr, ptr %this.addr, align 844  %vtable = load ptr, ptr %this1, align 845  %0 = call i1 @llvm.type.test(ptr %vtable, metadata !22), !nosanitize !4746  ret void47}48 49!10 = !{i64 16, !11}50!11 = distinct !{}51!21 = !{i64 16, !22}52!22 = distinct !{}53!47 = !{}54