[PATCH] D123693: Transform tex2D to legal intrinsic on gfx90a.

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 11:11:02 PDT 2022


rampitec added a comment.

There is also global isel.



================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:7837
+  case Intrinsic::amdgcn_image_sample_lz_2d: {
+    if (AMDGPU::isGFX90A(*Subtarget)) {
+      // Replace `image_sample_lz_2d` with `image_sample_2d`.
----------------
!ST->hasExtendedImageInsts() instead of target check.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123693



More information about the llvm-commits mailing list