This is an archive of the discontinued LLVM Phabricator instance.

propagate 'unpredictable' metadata on select instructions
ClosedPublic

Authored by spatel on Mar 16 2016, 1:18 PM.

Details

Summary

This is similar to D18133 where we allowed profile weights on select instructions. This extends that change to also allow the 'unpredictable' attribute of branches to apply to selects.

A test to check that 'unpredictable' metadata is preserved when cloning instructions was checked in at:
http://reviews.llvm.org/rL263648

Diff Detail

Event Timeline

spatel updated this revision to Diff 50848.Mar 16 2016, 1:18 PM
spatel retitled this revision from to propagate 'unpredictable' metadata on select instructions .
spatel updated this object.
spatel added reviewers: davidxl, congh, hfinkel.
spatel added a subscriber: llvm-commits.
davidxl accepted this revision.Mar 16 2016, 2:55 PM
davidxl edited edge metadata.

lgtm

This revision is now accepted and ready to land.Mar 16 2016, 2:55 PM
This revision was automatically updated to reflect the committed changes.