This is an archive of the discontinued LLVM Phabricator instance.

use "unpredictable" metadata in fast-isel when splitting compares
ClosedPublic

Authored by spatel on Aug 25 2015, 3:52 PM.

Details

Summary

This patch uses the metadata created by the llvm.unpredictable intrinsic in D12341 to avoid creating an unpredictable branch.

Diff Detail

Repository
rL LLVM

Event Timeline

spatel updated this revision to Diff 33138.Aug 25 2015, 3:52 PM
spatel retitled this revision from to use "unpredictable" metadata in fast-isel when splitting compares.
spatel updated this object.
spatel added reviewers: hfinkel, chandlerc, kparzysz.
spatel added a subscriber: llvm-commits.
spatel updated this revision to Diff 33470.Aug 28 2015, 2:28 PM
spatel edited edge metadata.

Patch updated:
Added 'TODO' comment assuming that 'unpredictable' now carries a value rather being a boolean.

spatel updated this revision to Diff 33825.Sep 2 2015, 10:46 AM

Patch updated:
Removed comment about threshold value; we can add that feature when we have profile data to feed into this metadata.

This revision was automatically updated to reflect the committed changes.