This is an archive of the discontinued LLVM Phabricator instance.

Don't commute i1 ops in reassociation pass.
AbandonedPublic

Authored by gberry on Jun 18 2015, 8:27 AM.

Details

Summary

If a target uses branches to implement i1 and/or ops, then the order of the and/or operands determines the branch order. Before this change, the reassociate pass would change the operand order according to its ranking algorithm, which does not take into account branch predictability or original user order.

Diff Detail

Event Timeline

gberry updated this revision to Diff 27938.Jun 18 2015, 8:27 AM
gberry retitled this revision from to Don't commute i1 ops in reassociation pass..
gberry updated this object.
gberry edited the test plan for this revision. (Show Details)
gberry added reviewers: mcrosier, bob.wilson.
gberry added a subscriber: Unknown Object (MLST).Jun 18 2015, 10:16 AM
gberry abandoned this revision.Jan 4 2016, 1:07 PM

Cleaning up old reviews.