summaryrefslogtreecommitdiffstats
path: root/llvm/test/LTO/Resolution/X86/not-prevailing-weak-aliasee.ll
Commit message (Collapse)AuthorAgeFilesLines
* Revert r370105 - Update two x86 datalayouts for r370083, looks like racing ↵Richard Trieu2019-08-281-1/+1
| | | | | | | | commits r370083 has been reverted, which this change depends on. llvm-svn: 370147
* Update two x86 datalayouts for r370083, looks like racing commitsReid Kleckner2019-08-271-1/+1
| | | | llvm-svn: 370105
* Fix target for new X86 testTeresa Johnson2019-08-231-2/+2
| | | | | | | Test added in r369766 had the wrong target arch for the X86 directory, leading to some bot failures. Fix it to have the appropriate target. llvm-svn: 369774
* [ThinLTO] Fix handling of weak interposable symbolsTeresa Johnson2019-08-231-0/+33
Summary: Keep aliasees alive if their alias is live, otherwise we end up with an alias to a declaration, which is invalid. This can happen when the aliasee is weak and non-prevailing. This fix exposed the fact that we were then attempting to internalize the weak symbol, which was not exported as it was not prevailing. We should not internalize interposable symbols in general, unless this is the prevailing copy, since it can lead to incorrect inlining and other optimizations. Most of the changes in this patch are due to the restructuring required to pass down the prevailing callback. Finally, while implementing the test cases, I found that in the case of a weak aliasee that is still marked not live because its alias isn't live, after dropping the definition we incorrectly marked the declaration with weak linkage when resolving prevailing symbols in the module. This was due to some special case handling for symbols marked WeakLinkage in the summary located before instead of after a subsequent check for the symbol being a declaration. It turns out that we don't actually need this special case handling any more (looking back at the history, when that was added the code was structured quite differently) - we will correctly mark with weak linkage further below when the definition hasn't been dropped. Fixes PR42542. Reviewers: pcc Subscribers: mehdi_amini, inglorion, steven_wu, dexonsmith, dang, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66264 llvm-svn: 369766
OpenPOWER on IntegriCloud