diff options
author | Philip Reames <listmail@philipreames.com> | 2022-01-08 10:29:09 -0800 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2022-01-08 10:33:54 -0800 |
commit | 2cafbcb560d9e6e2300941d088e754b01d56595b (patch) | |
tree | b40ef1247630614efadd8164e563e26b6daeaff5 /llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp | |
parent | 6ce732cbadf7b474da1108dc7b3b473b80944aa5 (diff) | |
download | llvm-2cafbcb560d9e6e2300941d088e754b01d56595b.zip llvm-2cafbcb560d9e6e2300941d088e754b01d56595b.tar.gz llvm-2cafbcb560d9e6e2300941d088e754b01d56595b.tar.bz2 |
[instcombine] Key deref vs deref_or_null annotation of allocation sites off nonnull attribute
Goal is to remove use of isOpNewLike. I looked at a couple approaches to this, and this turned out to be the cheapest one. Just letting deref_or_null be generated causes a bunch of test diffs, and I couldn't convince myself there wasn't a real regression somewhere. A generic instcombine to convert deref_or_null + nonnull to deref is annoying complicated since you have to mix facts from callsite and declaration while manipulating only existing call site attributes. It just wasn't worth the code complexity.
Note that the change in new-delete-itanium.ll is a real regression. If you have a callsite which overrides the builtin status of a nobuiltin declaration, *and* you don't put the apppriate attributes on that callsite, you may lose the deref fact. I decided this didn't matter; if anyone disagrees, you can add this case to the generic non-null inference.
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp')
0 files changed, 0 insertions, 0 deletions