From da897215b28fe4f1f94aa5ce5cfa54c7a757064d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 28 May 2013 18:37:09 +0000 Subject: Merging r182656: ------------------------------------------------------------------------ r182656 | d0k | 2013-05-24 11:05:35 -0700 (Fri, 24 May 2013) | 3 lines LoopVectorize: LoopSimplify can't canonicalize loops with an indirectbr in it, don't assert on those cases. Fixes PR16139. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_33@182785 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/LoopVectorize/lcssa-crash.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/Transforms/LoopVectorize') diff --git a/test/Transforms/LoopVectorize/lcssa-crash.ll b/test/Transforms/LoopVectorize/lcssa-crash.ll index 06b3b08aa0..de6be54849 100644 --- a/test/Transforms/LoopVectorize/lcssa-crash.ll +++ b/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-70-g09d2