diff --git a/llvm/test/irreducible.ll b/llvm/test/irreducible.ll new file mode 100644 index 000000000000..4daed8a2b34f --- /dev/null +++ b/llvm/test/irreducible.ll @@ -0,0 +1,14 @@ +implementation + +;; This is an irreducible flow graph + +void "irreducible"(bool %cond) +begin + br bool %cond, label %X, label %Y + +X: + br label %Y +Y: + br label %X +end +