This is an archive of the discontinued LLVM Phabricator instance.

Misleading comments of SplitBlockAndInsertIfThenElse in BasicBlockUtils.h
ClosedPublic

Authored by jery on Aug 31 2016, 9:00 AM.

Details

Reviewers
lattner
eugenis
Summary

The comments of SplitBlockAndInsertIfThenElse say the SplitBefore instruction will stay in the old block.
But according to the implementation(split the block at SplitBefore by using splitBasicBlock), the SplitBefore will be moved to the new block.

This patch fixes the comments.

Diff Detail

Event Timeline

jery updated this revision to Diff 69860.Aug 31 2016, 9:00 AM
jery retitled this revision from to Misleading comments of SplitBlockAndInsertIfThenElse in BasicBlockUtils.h.
jery updated this object.
jery added reviewers: eugenis, lattner.
jery added a subscriber: llvm-commits.
eugenis accepted this revision.Sep 16 2016, 12:14 PM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 16 2016, 12:14 PM

Thanks for help.
Since I'm new in llvm community, I don't have write access to svn.
Could you help me commit this patch ?

Thanks again.

eugenis closed this revision.Sep 19 2016, 2:35 PM

r281939
I've also removed the ALL CAPS before committing.