Extend the work done in D106376 to include masked gathers
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Accept with some nits in the tests which need fixing.
llvm/test/Transforms/InstCombine/select-masked_gather.ll | ||
---|---|---|
4–5 | Test names refer to load but are testing gather. Worth differentiating for so they're easy to grep for. Please update references to 'load' in function names (also, in comments). | |
123 | This intrinsic appears to be incorrectly named, since it's vscale x 2 x float, so it should be nxv2f32. That one is already available on line 125. | |
124–125 | These two intrinsics both have a have p0 in their titles but the arrangement of it is inconsistent. Looking at other tests, this part of the intrinsic name is often elided, so it would just be: declare <vscale x 2 x i32> @llvm.masked.gather.nxv2i32(<vscale x 2 x i32*>, i32, <vscale x 2 x i1>, <vscale x 2 x i32>) declare <vscale x 2 x float> @llvm.masked.gather.nxv2f32(<vscale x 2 x float*>, i32, <vscale x 2 x i1>, <vscale x 2 x float>) or if you want to use the full name take a look at the CHECK lines in these tests which have e.g. llvm.masked.gather.nxv2f32.nxv2p0f32 which looks to be the fully qualified way of writing it. |
Test names refer to load but are testing gather. Worth differentiating for so they're easy to grep for. Please update references to 'load' in function names (also, in comments).