[PATCH] D134282: [CGP] Add generic TargetLowering::shouldAlignPointerArgs() implementation
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 15:58:43 PST 2023
hubert.reinterpretcast added a comment.
In D134282#4148337 <https://reviews.llvm.org/D134282#4148337>, @efriedma wrote:
> Is there any way we can make AIX targets more resilient handling this kind of alignment change? If we have to, we can choose a point after which passes aren't allowed to increase the alignment of globals, and move this transform before that. But I'd like to avoid that if possible.
Not that I know of without negative side-effects. For example, if we access using a TOC entry for a label for the individual string, we would end up with more TOC entries which, in turn, can lead to TOC overflow.
As info, the object generation with this patch leads to:
llvm-project/llvm/lib/MC/XCOFFObjectWriter.cpp:620: virtual void (anonymous namespace)::XCOFFObjectWriter::recordRelocation(llvm::MCAssembler &, const llvm::MCAsmLayout &, const llvm::MCFragment *, const llvm::MCFixup &, llvm::MCValue, uint64_t &): Assertion `SectionMap.find(SymASec) != SectionMap.end() && "Expected containing csect to exist in map."' failed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134282/new/
https://reviews.llvm.org/D134282
More information about the llvm-commits
mailing list