[all-commits] [llvm/llvm-project] 19311e: [PowerPC] Do not convert lwz to lwa if the offset ...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Tue Jan 31 07:54:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19311e0a2e70c3775a67efe55780af65eb484b41
      https://github.com/llvm/llvm-project/commit/19311e0a2e70c3775a67efe55780af65eb484b41
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/test/CodeGen/PowerPC/no-misaligned-tocl.ll

  Log Message:
  -----------
  [PowerPC] Do not convert lwz to lwa if the offset is not a multiple of 4

The transform that converts this checks the alignment of the global
object being accessed. However, there was no check for the offset
within the global object which caused the compiler to produce a
DS relocation for an unaligned address.




More information about the All-commits mailing list