HomePhabricator

[SimpleLoopUnswitch] Add a test case exposing a bug

Authored by skatkov on Jul 10 2019, 1:25 AM.

Description

[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

llvm-svn: 365600

Details

Committed
skatkovJul 10 2019, 1:25 AM
Reviewer
skatkov
Differential Revision
D64403: [SimpleLoopUnswitch] Add a test case exposing a bug
Parents
rG625a0f70a988: [Syntax] Add assertion to catch invalid tokens early. NFC
Branches
Unknown
Tags
Unknown