Per LangRef: "Globals with available_externally linkage are
allowed to be discarded at will, and are otherwise the same
as linkonce_odr", since linkonce_odr is in this list it makes
sense to have available_externally there as well.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
test/Transforms/GlobalOpt/available_externally_global_ctors.ll | ||
---|---|---|
18 | Please clean up the test. You don't need the comments, the #0, the alignment, etc. |
Comment Actions
I don't think this is right. It basically reverts part of D10941.
Should we instead fix globaldce to do the right thing with these types of globals?
Comment Actions
We can fix whatever transformation is wrong because of that, but we first have to fix the LangRef...
Comment Actions
Yes, sorry. I think my review was wrong.
It would be reasonable for isWeakForLinker to return true iff it
returned true for declarations, which is not the case.
Sorry,
Rafael
Please clean up the test.
You don't need the comments, the #0, the alignment, etc.