HomePhabricator

Add CFG Simplification pass after Loop Unswitching.

Authored by mzolotukhin on Sep 23 2015, 8:50 PM.

Description

Add CFG Simplification pass after Loop Unswitching.

Loop unswitching produces conditional branches with constant condition,
and it's beneficial for later passes to clean this up with simplify-cfg.
We do this after the second invocation of loop-unswitch, but not after
the first one. Not doing so might cause problem for passes like
LoopUnroll, whose estimate of loop body size would be less accurate.

Reviewers: hfinkel

Differential Revision: http://reviews.llvm.org/D13064

llvm-svn: 248460

Details

Committed
mzolotukhinSep 23 2015, 8:50 PM
Differential Revision
D13064: Add CFG Simplification pass after Loop Unswitching.
Parents
rG0c8decd108de: cuda-path: StringRef cannot be used here.
Branches
Unknown
Tags
Unknown