[all-commits] [llvm/llvm-project] f3d061: [CaptureTracking] Don't consider comparison of inb...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Jul 6 07:49:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3d0613d852a90563a1e8704930a6e79368f106a
https://github.com/llvm/llvm-project/commit/f3d0613d852a90563a1e8704930a6e79368f106a
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-07-06 (Thu, 06 Jul 2023)
Changed paths:
M llvm/lib/Analysis/CaptureTracking.cpp
M llvm/test/Transforms/FunctionAttrs/nocapture.ll
Log Message:
-----------
[CaptureTracking] Don't consider comparison of inbounds GEP with nonnull non-capturing
This is required to bring CaptureTracking in line with the new
semantics from D154051, as gep inbounds p, 0 is now always non-poison.
There are many ways in which the inbounds special case could be
preserved: If the index is known non-zero, or there is an inbounds
chain down to an identified object, etc. However, I have opted to
drop the special case entirely, as it appears to be low value:
In cases where we can determine such things (e.g. the affected test
cases) we would end up removing the compare via isGEPKnownNonNull()
logic anyway.
Differential Revision: https://reviews.llvm.org/D154054
More information about the All-commits
mailing list