[PATCH] D56201: [LegalizeVectorTypes] Allow single loads and stores for more short vectors

Guillaume Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 9 02:20:46 PST 2019


tauril marked 3 inline comments as done.
tauril added inline comments.


================
Comment at: test/CodeGen/AMDGPU/load-constant-i16.ll:197
-; EG-DAG: 65535
-; EG-DAG: 65535
 define amdgpu_kernel void @constant_zextload_v3i16_to_v3i32(<3 x i32> addrspace(1)* %out, <3 x i16> addrspace(4)* %in) {
----------------
jvesely wrote:
> is there any reason to remove these lines from the test?
I removed these lines from the test because the generated code no longer has them in it.


================
Comment at: test/CodeGen/AMDGPU/load-global-i16.ll:201
-; TODO: This should use DST, but for some there are redundant MOVs
-; EGCM: LSHR {{[* ]*}}[[ST_LO]].Y, {{T[0-9]\.[XYZW]}}, literal
 ; EGCM: 16
----------------
jvesely wrote:
> have the extra moves been eliminated by this patch? if not, is there another reason to remove these lines?
Exactly, the moves have been eliminated by the patch!


================
Comment at: test/CodeGen/AMDGPU/load-global-i16.ll:222
-; TODO: This should use DST, but for some there are redundant MOVs
-; EGCM-DAG: ASHR {{[* ]*}}[[ST_LO]].Y, {{T[0-9]\.[XYZW]}}, literal
 ; EGCM-DAG: BFE_INT {{[* ]*}}[[ST_LO]].X, {{T[0-9]\.[XYZW]}}, 0.0, literal
----------------
jvesely wrote:
> same here
Same thing here, the patch removed these lines from the generated code.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D56201





More information about the llvm-commits mailing list