[PATCH] D146737: [AMDGPU] Trim zero components from buffer and image stores

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 07:32:35 PDT 2023


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp:1132-1135
     if (const AMDGPU::ImageDimIntrinsicInfo *ImageDimIntr =
             AMDGPU::getImageDimIntrinsicInfo(II.getIntrinsicID())) {
       return simplifyAMDGCNImageIntrinsic(ST, ImageDimIntr, II, IC);
     }
----------------
Instead of duplicating this code, I think it would be neater to move it after the whole `switch (...) {...}` statement. Then everything should Just Work.


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

https://reviews.llvm.org/D146737



More information about the llvm-commits mailing list