[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 Jun 5 00:21:29 PDT 2023
foad added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-simplify-image-buffer-stores.ll:11-15
+ %newvdata1 = insertelement <4 x float> undef, float 0.0, i32 0
+ %newvdata2 = insertelement <4 x float> %newvdata1, float 0.0, i32 1
+ %newvdata3 = insertelement <4 x float> %newvdata2, float 0.0, i32 2
+ %newvdata4 = insertelement <4 x float> %newvdata3, float 0.0, i32 3
+ call void @llvm.amdgcn.image.store.1d.v4f32.i32(<4 x float> %newvdata4, i32 15, i32 %s, <8 x i32> %rsrc, i32 0, i32 0)
----------------
Nit: could just use zeroinitializer.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146737/new/
https://reviews.llvm.org/D146737
More information about the llvm-commits
mailing list