HomePhabricator

[SwitchLowering] Handle multiple destinations on condensed case stmts

Authored by bruno on Nov 28 2014, 11:47 AM.

Description

[SwitchLowering] Handle multiple destinations on condensed case stmts

Switch cases statements with sequential values that branch to the same
destination BB may often be handled together in a single new source BB.
In this scenario we need to remove remaining incoming values from PHI
instructions in the destination BB, as to match the number of source
branches.

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

rdar://problem/19040894

llvm-svn: 222926

Details

Committed
brunoNov 28 2014, 11:47 AM
Differential Revision
D6415: [SwitchLowering] Handle multiple destinations on condensed case stmts
Parents
rGe57f3c0a4235: Enable FeatureFastUAMem for btver2
Branches
Unknown
Tags
Unknown