[PATCH] D134282: [CGP] Add generic TargetLowering::shouldAlignPointerArgs() implementation

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 07:47:43 PST 2023


daltenty added a comment.

In D134282#4151773 <https://reviews.llvm.org/D134282#4151773>, @hubert.reinterpretcast wrote:

> In D134282#4148884 <https://reviews.llvm.org/D134282#4148884>, @hubert.reinterpretcast wrote:
>
>> 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.
>
> Looking at a case with more than one string, it seems we currently have separate csects and TOC entries for each string anyway. I am not sure that is a state we want to stay in though.

Whether there are separate csects actually depends on the -fdata-sections setting, though I'm surprised about the extra TOC entries. Agree that's probably not a state we want to stay in.

>  I do not want to make changing that more difficult.

I'm not sure the alignment from the identifier will complicate those orthogonal changes, but let me post the patch and we can continue the discussion there.


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