22 lines · plain
1; RUN: opt -O3 -S < %s | FileCheck %s2 3target datalayout = "e-i64:64-f80:128-n8:16:32:64"4target triple = "x86_64-unknown-linux-gnu"5 6define void @donteliminate() {7; CHECK-LABEL: donteliminate8; CHECK-NEXT: tail call noalias ptr @allocmemory()9; CHECK-NEXT: tail call noalias ptr @allocmemory()10; CHECK-NEXT: tail call noalias ptr @allocmemory()11; CHECK-NEXT: ret void12 %1 = tail call noalias ptr @allocmemory()13 %2 = tail call noalias ptr @allocmemory()14 %3 = tail call noalias ptr @allocmemory()15 ret void16}17 18; Function Attrs: inaccessiblememonly19declare noalias ptr @allocmemory() #020 21attributes #0 = { inaccessiblememonly }22