[all-commits] [llvm/llvm-project] cf284f: [LSV] Change the default value of InstertElement t...

Hyeongyu Kim via All-commits all-commits at lists.llvm.org
Sun Oct 3 01:58:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf284f6c5ef34040bb28190509e2876242f85b49
      https://github.com/llvm/llvm-project/commit/cf284f6c5ef34040bb28190509e2876242f85b49
  Author: hyeongyu kim <gusrb406 at snu.ac.kr>
  Date:   2021-10-03 (Sun, 03 Oct 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
    M llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/merge-stores.ll
    M llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/pointer-elements.ll
    M llvm/test/Transforms/LoadStoreVectorizer/int_sideeffect.ll

  Log Message:
  -----------
  [LSV] Change the default value of InstertElement to poison

This patch is changing the InsertElement's placeholder to poison without changing the LSV's behavior.

Regardless of whether `StoreTy` is FixedVectorType or not, the poison value will be overwritten with a different value.
Therefore, whether the InsertElement's placeholder is poison or undef will not affect the result of the program.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D111005




More information about the All-commits mailing list