1 ; RUN: opt -passes=loop-rotate %s -S | FileCheck %s
4 ; Check that loop rotate keeps proper mapping between cloned instructions,
5 ; otherwise, MemorySSA will assert.
8 define void @f(i1 %arg) {
12 for.cond.cleanup15: ; preds = %for.body16
15 for.body16: ; preds = %for.body16.for.body16_crit_edge, %entry
16 %call.i = tail call float @expf(float 0.000000e+00) #1
17 %0 = load ptr, ptr undef, align 8
18 br i1 %arg, label %for.cond.cleanup15, label %for.body16.for.body16_crit_edge
20 for.body16.for.body16_crit_edge: ; preds = %for.body16
21 %.pre = load float, ptr undef, align 8
25 declare float @expf(float)