[PATCH] D110579: [AMDGPU] Add two new intrinsics to control fp_trunc rounding mode

Julien Pagès via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 09:48:45 PDT 2021


jpages updated this revision to Diff 378283.
jpages added a comment.

Rebased based on Jay's comments.

The consequence of this change is the use of setreg instead of s_round_mode in the codegen. But it's probably better to not reinvent the wheel as this pass is already optimized to not insert too many setreg.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110579/new/

https://reviews.llvm.org/D110579

Files:
  llvm/include/llvm/IR/Intrinsics.td
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.h
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/lib/Target/AMDGPU/SIModeRegister.cpp
  llvm/test/CodeGen/AMDGPU/llvm.experimental.fptrunc.round.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110579.378283.patch
Type: text/x-patch
Size: 9943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/6d94b933/attachment.bin>


More information about the llvm-commits mailing list