Simplify the CFG after loop pass cleanup.
authorFilipe Cabecinhas <me@filcab.net>
Wed, 26 Apr 2017 12:02:41 +0000 (12:02 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 26 Apr 2017 12:02:41 +0000 (12:02 +0000)
commit92dc348773747f9a43f010c2401b53ecc0456466
treecdf1a28fbda2c35cffd0ee1382b27da189664225
parentb458b468a249eed55d37a7bc1a994bf6257921da
Simplify the CFG after loop pass cleanup.

Summary:
Otherwise we might end up with some empty basic blocks or
single-entry-single-exit basic blocks.

This fixes PR32085

Reviewers: chandlerc, danielcdh

Subscribers: mehdi_amini, RKSimon, llvm-commits

Differential Revision: https://reviews.llvm.org/D30468

llvm-svn: 301395
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/Other/new-pm-defaults.ll
llvm/test/Other/pass-pipelines.ll
llvm/test/Other/pr32085.ll [new file with mode: 0644]