This patch will filter attributes to only preserve those that are usefull.
In the case of NoAlias it is filtered out not because it isn't usefull
but because it is incorrect to preserve it as it is only valdi for the
duration of the function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/IR/KnowledgeRetention.cpp | ||
---|---|---|
109 | Are we sure we want to keep a positive list of useful ones? (Instead of a negative list of not-useful ones?) |
llvm/lib/IR/KnowledgeRetention.cpp | ||
---|---|---|
109 | i looked at all attributes we support and most of them aren't useful. so i think the list is shorter this way and will need less updating. but perhaps a negative pattern has a better default. |
Comment Actions
LGTM.
llvm/lib/IR/KnowledgeRetention.cpp | ||
---|---|---|
109 | Let's keep it for now, but at the latest once we have assume ranges it will probably be easier to keep them and opt-out. |
Are we sure we want to keep a positive list of useful ones? (Instead of a negative list of not-useful ones?)