[all-commits] [llvm/llvm-project] 2670c7: [VectorCombine] Fix alignment in single element store

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Thu Jun 10 19:32:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2670c7dd5b25e87825edc0aca7729c1d3dba5afc
      https://github.com/llvm/llvm-project/commit/2670c7dd5b25e87825edc0aca7729c1d3dba5afc
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2021-06-11 (Fri, 11 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/load-insert-store.ll

  Log Message:
  -----------
  [VectorCombine] Fix alignment in single element store

This fixes the concern in single element store scalarization that the
alignment of new store may be larger than it should be. It calculates
the largest alignment if index is constant, and a safe one if not.

Reviewed By: lebedev.ri, spatel

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




More information about the All-commits mailing list