[PATCH] D153258: AMDGPU: Optimize set_rounding if input is known to fit in 2 bits

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 02:07:51 PDT 2023


Pierre-vh added a comment.

Code LGTM but I'm not well-versed in this kind of floating point magic so I will leave it up to someone that knows more to approve :)



================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:3624-3626
+    const bool UseReducedTable = KB.countMinLeadingZeros() >= 30;
 
+    if (UseReducedTable) {
----------------
nit: inline `UseReducedTable`?


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

https://reviews.llvm.org/D153258



More information about the llvm-commits mailing list