[PATCH] D16744: SelectionDAG: Lower some range metadata to AssertZext

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 17:59:18 PST 2016


arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.

If a range has a lower bound of 0, add an AssertZext from the
nearest floor power of two.
    
This allows operations with some workitem intrinsics with known
maximum ranges to use fast 24-bit multiplies.


http://reviews.llvm.org/D16744

Files:
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
  test/CodeGen/AArch64/lower-range-metadata-func-call.ll
  test/CodeGen/AMDGPU/lower-range-metadata-intrinsic-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16744.46458.patch
Type: text/x-patch
Size: 6183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160130/f9933c1f/attachment-0001.bin>


More information about the llvm-commits mailing list