brintos

brintos / llvm-project-archived public Read only

0
0
Text · 376 B · ff43bd1 Raw
15 lines · plain
1; RUN: opt < %s -passes=instcombine -disable-output2 3; This example caused instcombine to spin into an infinite loop.4 5define void @test(ptr %P) {6        ret void7 8Dead:           ; preds = %Dead9        %X = phi i32 [ %Y, %Dead ]              ; <i32> [#uses=1]10        %Y = sdiv i32 %X, 10            ; <i32> [#uses=2]11        store i32 %Y, ptr %P12        br label %Dead13}14 15