[PATCH] D27584: AMDGPU: Improve nsw/nuw/exact when promoting uniform i16 ops

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 11:31:33 PST 2016


arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.

These were simply preserving the flags of the original operation,
which was too conservative in most cases and incorrect for mul.

      

nsw/nuw may be needed for some combines to cleanup messes when
 intermediate sext_inregs are introduced later.

      

Tested valid combinations with alive.


https://reviews.llvm.org/D27584

Files:
  lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  test/CodeGen/AMDGPU/amdgpu-codegenprepare-i16-to-i32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27584.80796.patch
Type: text/x-patch
Size: 21515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161208/bc1ade4d/attachment.bin>


More information about the llvm-commits mailing list