brintos

brintos / llvm-project-archived public Read only

0
0
Text · 746 B · 324f794 Raw
33 lines · plain
1; RUN: opt < %s -passes=licm -S | FileCheck %s2; PR96303 4@g_39 = external global i16, align 25 6declare ptr @func_84(ptr nocapture) nounwind readonly7 8declare ptr @func_108(ptr nocapture) nounwind readonly9 10define void @func() nounwind {11entry:12  br label %for.body4.lr.ph13 14for.body4.lr.ph:15  br label %for.body416 17; CHECK: for.body4:18; CHECK: load volatile i16, ptr @g_3919 20for.body4:21  %l_612.11 = phi ptr [ undef, %for.body4.lr.ph ], [ %call19, %for.body4 ]22  %tmp7 = load volatile i16, ptr @g_39, align 223  %call = call ptr @func_108(ptr undef)24  %call19 = call ptr @func_84(ptr %call)25  br i1 false, label %for.body4, label %for.cond.loopexit26 27for.cond.loopexit:28  br i1 false, label %for.body4.lr.ph, label %for.end2629 30for.end26:31  ret void32}33