[PATCH] D46644: AMDGPU: Ignore any_extend in mul24 combine

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 09:27:50 PDT 2018


arsenm created this revision.
arsenm added reviewers: rampitec, cfang, Farhana, kzhuravl.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng.

If a multiply is truncated, SimplifyDemandedBits
sometimes turns a zero_extend of the inputs into an
any_extend, which makes the known bits computation unhelpful.
Ignore these and compute known bits for the underlying value,
since we insert the correct extend type after.


https://reviews.llvm.org/D46644

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  test/CodeGen/AMDGPU/mul_uint24-amdgcn.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46644.145943.patch
Type: text/x-patch
Size: 4179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180509/e3b5d775/attachment.bin>


More information about the llvm-commits mailing list