[llvm] [AIX][TLS] Optimize the small local-exec access sequence for non-zero offsets (PR #71485)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 08:15:07 PST 2024
================
@@ -7578,6 +7668,10 @@ void PPCDAGToDAGISel::PeepholePPC64() {
if (isVSXSwap(SDValue(N, 0)))
reduceVSXSwap(N, CurDAG);
+ // This optimization is performed for non-TOC-based local-exec accesses.
+ if (HasAIXSmallLocalExecTLS)
+ foldADDIForLocalExecAccesses(N, CurDAG);
----------------
diggerlin wrote:
`continue` the loop earlier will save compiler compile time ,
anyway, you can keep your code. I don't have a strong preference.
https://github.com/llvm/llvm-project/pull/71485
More information about the llvm-commits
mailing list