This is an archive of the discontinued LLVM Phabricator instance.

Factor out a splitSwitchCase() function so that it can be reused.
ClosedPublic

Authored by djasper on Jan 20 2015, 12:36 AM.

Details

Reviewers
chandlerc
Summary

This is in preparation for a fix to llvm.org/PR22262.
No functional changes.

Diff Detail

Event Timeline

djasper updated this revision to Diff 18417.Jan 20 2015, 12:36 AM
djasper retitled this revision from to Factor out a splitSwitchCase() function so that it can be reused..
djasper updated this object.
djasper edited the test plan for this revision. (Show Details)
djasper added a reviewer: chandlerc.
djasper added a subscriber: Unknown Object (MLST).
chandlerc accepted this revision.Jan 20 2015, 12:44 AM
chandlerc edited edge metadata.

LGTM, thanks for clarifying why the split is useful (it seems really arbitrary from this change alone).

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
2433–2436

You're also clearly doing some other cleanups in this patch. Feel free to split these out, or not (i don't *really* care) but at least call them out in the commit log.

This revision is now accepted and ready to land.Jan 20 2015, 12:44 AM
djasper closed this revision.Jan 20 2015, 10:20 AM

Clarified some more in the commit message and submitted as r226551.