[llvm] [AIX][TLS] Optimize the -maix-small-local-exec-tls local-exec access sequence for non-zero offsets (PR #71485)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 9 08:44:14 PST 2023
================
@@ -1514,13 +1522,41 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
case PPC::LWA: {
// Verify alignment is legal, so we don't create relocations
// that can't be supported.
- unsigned OpNum = (MI->getOpcode() == PPC::STD) ? 2 : 1;
+ unsigned OpNum;
+ if (Subtarget->hasAIXSmallLocalExecTLS())
----------------
stephenpeckham wrote:
Why does hasAIXSmallLocalExecTLS() affect OpNum? Is a comment needed?
https://github.com/llvm/llvm-project/pull/71485
More information about the llvm-commits
mailing list