brintos

brintos / llvm-project-archived public Read only

0
0
Text · 719 B · 49d6768 Raw
22 lines · plain
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 < %s2 3; Check that don't crash if the Alias Analysis returns better results than4; before when cloning loop's memoryssa.5define void @f(ptr %p) {6entry:7  %0 = load i16, ptr %p, align 18  ret void9}10 11define void @g(i1 %tobool.not) {12entry:13  br label %for.cond14 15for.cond:                                         ; preds = %if.then, %for.cond, %entry16  br i1 %tobool.not, label %if.then, label %for.cond17 18if.then:                                          ; preds = %for.cond19  call void @f()20  br label %for.cond21}22