This is an archive of the discontinued LLVM Phabricator instance.

IfConversion: Don't count branches in # of duplicates.
ClosedPublic

Authored by iteratee on Sep 1 2016, 5:08 PM.

Details

Reviewers
hfinkel
Summary

If the entire blocks match, we would count the branch instructions
toward the number of duplicated instructions. This doesn't match what we
do elsewhere, and was causing a bug.

Diff Detail

Event Timeline

iteratee updated this revision to Diff 70106.Sep 1 2016, 5:08 PM
iteratee retitled this revision from to IfConversion: Don't count branches in # of duplicates..
iteratee updated this object.
iteratee added a reviewer: hfinkel.
iteratee set the repository for this revision to rL LLVM.
iteratee added a subscriber: llvm-commits.
hfinkel accepted this revision.Sep 1 2016, 5:13 PM
hfinkel edited edge metadata.

LGTM (does indeed match what we do later in the same function)

This revision is now accepted and ready to land.Sep 1 2016, 5:13 PM
iteratee added inline comments.Sep 1 2016, 5:33 PM
lib/CodeGen/IfConversion.cpp
675

Heh, Shows what I get for copy and paste.
Should be TIB.

Eugene.Zelenko closed this revision.Oct 4 2016, 2:18 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL280448. Please specify "Differential revision: <URL>" in commit message.