jvoung
jvoung
There is a proposal and a prototype for the first case at https://discourse.llvm.org/t/rfc-llvm-new-initialized-parameter-attribute-for-improved-interprocedural-dse/77337
clang-tidy bugprone-unchecked-optional-access assumes unstable function results when it's impossible
ClangTidy trunk should no longer be warning on this https://godbolt.org/z/rMGnM3eh8
Should be fixed with https://github.com/llvm/llvm-project/pull/120249 (checked the godbolt links and I don't see a warning anymore at trunk)
Thinking about this more: 1) I can understand that optimizing can be challenging (below), but let me know if I missed something. 2) Would this be a case where it...
Hi @fhahn, thanks for taking a look! Yes, the ctor does not initialize all of the short `__data_` array, so I do agree that the optimizer is working as expected....
Unfortunately, I'm not sure of a simple solution (say, putting the attribute `noalias` on the parameter `this` for constructors). Re-reading the spec, say section 11.10.4 of https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/n4849.pdf (or the earlier...
I think fixed in https://github.com/llvm/llvm-project/pull/76746
Looks like this is fixed in https://github.com/llvm/llvm-project/pull/131575 (there was some subtlety with `nullptr` literals that required thorough testing to surface)
Can't reproduce lately (version 21): (`0.0544 ( 0.7%) 0.0543 ( 0.7%) 0.1087 ( 0.7%) 0.1088 ( 0.7%) bugprone-unchecked-optional-access`) Otherwise https://github.com/llvm/llvm-project/issues/204593 is one possibility to make the analysis work better for...
Thank you for clarifying and checking again. I also see the full clang-tidy run take several seconds (~15), but the bugprone-unchecked-optional-access is a smaller part of that. There are likely...