27 lines · plain
1; RUN: opt -passes=loop-rotate %s -S | FileCheck %s2; REQUIRES: asserts3 4; Check that loop rotate keeps proper mapping between cloned instructions,5; otherwise, MemorySSA will assert.6 7; CHECK-LABEL: @f8define void @f(i1 %arg) {9entry:10 br label %for.body1611 12for.cond.cleanup15: ; preds = %for.body1613 ret void14 15for.body16: ; preds = %for.body16.for.body16_crit_edge, %entry16 %call.i = tail call float @expf(float 0.000000e+00) #117 %0 = load ptr, ptr undef, align 818 br i1 %arg, label %for.cond.cleanup15, label %for.body16.for.body16_crit_edge19 20for.body16.for.body16_crit_edge: ; preds = %for.body1621 %.pre = load float, ptr undef, align 822 br label %for.body1623}24 25declare float @expf(float)26 27