[PATCH] D70367: Fix for AMDGPU MUL_I24 known bits calculation

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 04:41:28 PST 2019


arsenm added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/amdgpu-mul24-knownbits.ll:15-25
+  %tid_y = lshr i32 %5, 4
+  %tid_x = and i32 %5, 15
+
+  %y_div_5 = sdiv i32 %tid_y, 5
+  %6 = mul nsw i32 %y_div_5, -5
+  %y_mod_5 = add nsw i32 %6, %tid_y
+  %v1 = add nsw i32 %tid_x, %y_mod_5
----------------
This testcase is far too big. You should be able to reduce it to a handful of instsructions, probably these ones


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

https://reviews.llvm.org/D70367





More information about the llvm-commits mailing list