In order to get context sensitivity from isKnownNonZero we need to
provide a context instruction *and* a dominator tree. The latter is
passed now to which actually allows to remove some initialization code.
Tests taken from PR43833.
Paths
| Differential D69595
[Attributor] Make AANonNull perform context sensitive queries ClosedPublic Authored by jdoerfert on Oct 29 2019, 4:40 PM.
Details Summary In order to get context sensitivity from isKnownNonZero we need to Tests taken from PR43833.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 30 2019, 1:55 AM jdoerfert added a parent revision: D69571: [ValueTracking] Allow context-sensitive nullness check for non-pointers.Oct 30 2019, 6:50 PM Closed by commit rG2d6d651e8cb6: [Attributor] Make AANonNull perform context sensitive queries (authored by jdoerfert). · Explain WhyOct 31 2019, 12:52 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 227326 llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/nonnull.ll
|
Please add FIXME.