[all-commits] [llvm/llvm-project] 15488f: [CodeGen] Fix the computation of the alignment of ...

Clement Courbet via All-commits all-commits at lists.llvm.org
Wed Feb 12 01:37:46 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 15488ff24b4ae205f979be7248b38655acd82f9c
      https://github.com/llvm/llvm-project/commit/15488ff24b4ae205f979be7248b38655acd82f9c
  Author: Clement Courbet <courbet at google.com>
  Date:   2020-02-12 (Wed, 12 Feb 2020)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/test/Transforms/CodeGenPrepare/PowerPC/split-store-alignment.ll
    M llvm/test/Transforms/CodeGenPrepare/X86/split-store-alignment.ll

  Log Message:
  -----------
  [CodeGen] Fix the computation of the alignment of split stores.

Summary:
Right now the alignment of the lower half of a store is computed as
align/2, which fails for unaligned stores (align = 1), and is overly
pessimitic for, e.g. a 8 byte store aligned to 4 bytes.
Fixes PR44851
Fixes PR44877

Reviewers: gchatelet, spatel, lebedev.ri

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list