MaskRay added a comment.

In D72829#1831017 <https://reviews.llvm.org/D72829#1831017>, @serge-sans-paille 
wrote:

> > Linkages which were not interposable before and can be interposable now: 
> > available_externally, linkonce_odr, weak_odr, external, and appending.
>
> @MaskRay I understand the motivation behind that sentence, but do we want 
> that change to be non-conditional, i.e. not guarded by 
> -fsemantic-interposition ?


I tried modifying `GlobalValue::maybeSetDsoLocal`: `setDSOLocal(true)` for 
ExternalLinkage. Unfortunately that will break 1337 tests. If not so many tests 
need fixing, I wish we can place `getParent() && 
getParent()->getSemanticInterposition()` logic in `maybeSetDsoLocal` and 
simplify `isInterposable`.

  if (!isInterposableLinkage(getLinkage()))
    return false;
  - return getParent() && getParent()->getSemanticInterposition() && 
!isDSOLocal();
  + return !isDSOLocal(); 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72829/new/

https://reviews.llvm.org/D72829



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to