[all-commits] [llvm/llvm-project] 066524: [ScalarizeMaskedMemIntrin][SelectionDAGBuilder] Us...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jul 1 19:09:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 066524ea5438c5c30ac91a7702091be6dc5fd2d0
      https://github.com/llvm/llvm-project/commit/066524ea5438c5c30ac91a7702091be6dc5fd2d0
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-07-01 (Thu, 01 Jul 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp

  Log Message:
  -----------
  [ScalarizeMaskedMemIntrin][SelectionDAGBuilder] Use the element type to calculate alignment for gather/scatter when alignment operand is 0.

Previously we used the vector type, but we're loading/storing
invididual elements so I think only element alignment should matter.

Noticed while looking at the code for something else so I don't
have a test case.

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




More information about the All-commits mailing list