[all-commits] [llvm/llvm-project] b5f4ac: [PowerPC] Add FI alignment check if the addressing...

Amy Kwan via All-commits all-commits at lists.llvm.org
Tue Jul 13 10:32:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5f4ac4c11b041ab9dfed42a7133d1eca6536aaa
      https://github.com/llvm/llvm-project/commit/b5f4ac4c11b041ab9dfed42a7133d1eca6536aaa
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    A llvm/test/CodeGen/PowerPC/unaligned-dqform-ld.ll

  Log Message:
  -----------
  [PowerPC] Add FI alignment check if the addressing mode is DS/DQ-Form, emit X-Form if necessary.

This patch adds a function that checks whether or not the frame index
is aligned when the computed addressing mode is an aligned D-Form (DS, or DQ-Form).
If the frame index appears to be unaligned, within these two modes, reset
the mode to X-Form in order to fall back to selection X-Form loads.

A test case is added to ensure that the test emits X-Form loads and not DQ-Form
loads since the frame index is not aligned within the test case.

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




More information about the All-commits mailing list