]> granicus.if.org Git - llvm/commit
[SimpleLoopUnswitch] Add a test case exposing a bug
authorSerguei Katkov <serguei.katkov@azul.com>
Wed, 10 Jul 2019 08:25:48 +0000 (08:25 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Wed, 10 Jul 2019 08:25:48 +0000 (08:25 +0000)
commita54df3d63c64e17661ee02afeb31cf3e44a63b3f
tree1e6d243cdd776edff93ba103c422d57d0204504f
parent55e1bd58805fa90af0f8daa4c993ba1fd42d537f
[SimpleLoopUnswitch] Add a test case exposing a bug

This test exposes a bug in SimpleLoopUnswitch that leads to a crash on
assert(SuccessorsCount > 1 && "Cannot unswitch a condition without multiple distinct successors!");
when SimpleLoopUnswitch considers unswitching of a loop by a switch with one successor.

Fix will be submitted soon.

Patch Author: Daniil Suchkov.

Reviewers: reames, asbirlea, skatkov
Reviewed By: skatkov
Subscribers: zzheng, llvm-commits
Differential Revision: https://reviews.llvm.org/D64403

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365600 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-redundant-switch.ll [new file with mode: 0644]