1 ; RUN: opt -passes="require<globals-aa>,cgscc(instcombine),function(loop-mssa(loop-simplifycfg)),recompute-globalsaa,function(loop-mssa(simple-loop-unswitch<nontrivial>),print<memoryssa>)" -disable-output < %s
3 ; Check that don't crash if the Alias Analysis returns better results than
4 ; before when cloning loop's memoryssa.
5 define void @f(ptr %p) {
7 %0 = load i16, ptr %p, align 1
11 define void @g(i1 %tobool.not) {
15 for.cond: ; preds = %if.then, %for.cond, %entry
16 br i1 %tobool.not, label %if.then, label %for.cond
18 if.then: ; preds = %for.cond