From 6ac1e6237748224facd49b14b1c91f3d2ec2f770 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 24 May 2013 18:05:35 +0000 Subject: LoopVectorize: LoopSimplify can't canonicalize loops with an indirectbr in it, don't assert on those cases. Fixes PR16139. llvm-svn: 182656 --- llvm/test/Transforms/LoopVectorize/lcssa-crash.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'llvm/test/Transforms/LoopVectorize/lcssa-crash.ll') diff --git a/llvm/test/Transforms/LoopVectorize/lcssa-crash.ll b/llvm/test/Transforms/LoopVectorize/lcssa-crash.ll index 06b3b08aa0e..de6be548490 100644 --- a/llvm/test/Transforms/LoopVectorize/lcssa-crash.ll +++ b/llvm/test/Transforms/LoopVectorize/lcssa-crash.ll @@ -27,3 +27,14 @@ for.end.i.i.i: unreachable } +; PR16139 +define void @test2(i8* %x) { +entry: + indirectbr i8* %x, [ label %L0, label %L1 ] + +L0: + br label %L0 + +L1: + ret void +} -- cgit v1.2.3