[PATCH] R600: Make cttz / ctlz cheap to speculate

Matt Arsenault Matthew.Arsenault at amd.com
Fri Jan 2 09:06:20 PST 2015


Speculating things is generally good. SI+ has instructions for these
for 32-bit values. This is still probably better even with the expansion
for 64-bit values, although it is odd that this callback doesn't have
the size as a parameter.

http://reviews.llvm.org/D6826

Files:
  lib/Target/R600/AMDGPUISelLowering.cpp
  lib/Target/R600/AMDGPUISelLowering.h
  test/CodeGen/R600/cttz-ctlz.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6826.17760.patch
Type: text/x-patch
Size: 8494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150102/5878ac3a/attachment.bin>


More information about the llvm-commits mailing list