This is the next patch of D86842
When we check noundef attribute violation at callsites, we do not have to require nonnull in the following two cases.
- An argument is known to be simplified to undef
- An argument is known to be dead
Paths
| Differential D86845
[Attributor] Fix callsite check in AAUndefinedBehavior ClosedPublic Authored by okura on Aug 29 2020, 7:13 PM.
Details Summary This is the next patch of D86842
Diff Detail
Event TimelineComment Actions LGTM
This revision is now accepted and ready to land.Aug 29 2020, 8:46 PM Closed by commit rGa7ca9e09bd10: [Attributor] Fix callsite check in AAUndefinedBehavior (authored by okura). · Explain WhyAug 29 2020, 9:21 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 288833 llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/undefined_behavior.ll
|
While you are here, move the isa into the conditional above. No need to create/query an AA if it's not a nullptr.