[PATCH] D34545: [AMDGPU] Simplify setcc (sext from i1 b), -1|0, cc

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 17:29:41 PDT 2017


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

Depending on the compare code that can be either an argument of
sext or negate of it. This helps to avoid v_cndmask_b64 instruction
for sext. A reversed value can be further simplified and folded into
its parent comparison if possible.


https://reviews.llvm.org/D34545

Files:
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/setcc-sext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34545.103672.patch
Type: text/x-patch
Size: 11195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170623/4aa8776c/attachment.bin>


More information about the llvm-commits mailing list