[PATCH] D53739: InstCombine: Avoid introducing posion values when lowering llvm.amdgcn.[us]bfe

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 16:21:18 PDT 2018


tstellar created this revision.
tstellar added a reviewer: arsenm.
Herald added subscribers: nhaehnle, wdng, jvesely.

When the 3rd argument to these intrinsics is zero, lowering them
to shift instructions produces posion values, since we end up with
shift amounts equal to the number of bits in the shifted value.  This
means we can only lower these intrinsics if we can prove that the
3rd argument is not zero.


Repository:
  rL LLVM

https://reviews.llvm.org/D53739

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53739.171216.patch
Type: text/x-patch
Size: 3938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181025/6e300795/attachment.bin>


More information about the llvm-commits mailing list