[all-commits] [llvm/llvm-project] b37c7e: [PPC][AIX] Fix toc-data peephole bug and some rela...
Sean Fertile via All-commits
all-commits at lists.llvm.org
Thu Aug 10 07:23:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b37c7ed0c95c7f24758b1532f04275b4bb65d3c1
https://github.com/llvm/llvm-project/commit/b37c7ed0c95c7f24758b1532f04275b4bb65d3c1
Author: Sean Fertile <sd.fertile at gmail.com>
Date: 2023-08-10 (Thu, 10 Aug 2023)
Changed paths:
M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
A llvm/test/CodeGen/PowerPC/aix-toc-data-offset.ll
Log Message:
-----------
[PPC][AIX] Fix toc-data peephole bug and some related cleanup.
Set the ReplaceFlags variable to false, since there is code meant only
for the ADDItocHi/ADDItocL nodes. This has the side effect of disabling
the peephole when the load/store instruction has a non-zero offset.
This patch also fixes retrieving the `ImmOpnd` node from the AIX small
code model pseduos and does the same for the register operand node.
This allows cleaning up the later calls to replaceOperands.
Finally move calculating the MaxOffset into the code guarded by
ReplaceFlags as it is only used there and the comment is specific to the ELF
ABI.
Fixes https://github.com/llvm/llvm-project/issues/63927
Differential Revision: https://reviews.llvm.org/D155957
More information about the All-commits
mailing list