This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Pattern match ffbh pattern to instruction.
ClosedPublic

Authored by arsenm on Jan 8 2016, 7:20 PM.

Details

Reviewers
tstellarAMD
Summary

The hardware instruction's output on 0 is -1 rather than 32.
Eliminate a test and select to -1. This removes an extra instruction
from the compatability function with HSAIL's firstbit instruction.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 44395.Jan 8 2016, 7:20 PM
arsenm retitled this revision from to AMDGPU: Pattern match ffbh pattern to instruction..
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
arsenm added a comment.Jan 8 2016, 7:29 PM

Here is a piglit test for these

tstellarAMD accepted this revision.Jan 11 2016, 7:47 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jan 11 2016, 7:47 AM
arsenm closed this revision.Jan 11 2016, 9:06 AM

r257352