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

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 13:36:12 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:3624-3626
+    const bool UseReducedTable = KB.countMinLeadingZeros() >= 30;
 
+    if (UseReducedTable) {
----------------
Pierre-vh wrote:
> nit: inline `UseReducedTable`?
Then you lose the name-as-comment?


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

https://reviews.llvm.org/D153258



More information about the llvm-commits mailing list