Page MenuHomePhabricator

[SwitchLowering] Handle multiple destinations on condensed case stmts
ClosedPublic

Authored by bruno on Nov 26 2014, 3:23 AM.

Details

Summary

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.

Diff Detail

Event Timeline

bruno updated this revision to Diff 16642.Nov 26 2014, 3:23 AM
bruno retitled this revision from to [SwitchLowering] Handle multiple destinations on condensed case stmts.
bruno updated this object.
bruno edited the test plan for this revision. (Show Details)
bruno set the repository for this revision to rL LLVM.
bruno added a subscriber: Unknown Object (MLST).
ributzka accepted this revision.Nov 26 2014, 8:42 AM
ributzka edited edge metadata.

Hi Bruno,

thanks for tracking this one down.

LGTM

--Juergen

This revision is now accepted and ready to land.Nov 26 2014, 8:42 AM
bruno closed this revision.Nov 28 2014, 11:58 AM

Committed in r222926