From: Shinji Okumura Date: Sun, 30 Aug 2020 03:34:50 +0000 (+0900) Subject: [Attributor][NFC] Fix dependency type in AAUndefinedBehaviorImpl::updateImpl X-Git-Tag: llvmorg-13-init~13315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7082381735e7b663e787dbac2e6e59853c2f9b2e;p=platform%2Fupstream%2Fllvm.git [Attributor][NFC] Fix dependency type in AAUndefinedBehaviorImpl::updateImpl This patch fixes wrong dependency type in AAUB. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D86842 --- diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index 5c4754c..83bb834 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -2024,11 +2024,12 @@ struct AAUndefinedBehaviorImpl : public AAUndefinedBehavior { IRPosition CalleeArgumentIRP = IRPosition::callsite_argument(CB, idx); if (!CalleeArgumentIRP.hasAttr({Attribute::NoUndef})) continue; - auto &NonNullAA = A.getAAFor(*this, CalleeArgumentIRP); + auto &NonNullAA = A.getAAFor(*this, CalleeArgumentIRP, + /* TrackDependence */ false); if (!NonNullAA.isKnownNonNull()) continue; - const auto &ValueSimplifyAA = - A.getAAFor(*this, IRPosition::value(*ArgVal)); + const auto &ValueSimplifyAA = A.getAAFor( + *this, IRPosition::value(*ArgVal), /* TrackDependence */ false); Optional SimplifiedVal = ValueSimplifyAA.getAssumedSimplifiedValue(A); @@ -2071,7 +2072,8 @@ struct AAUndefinedBehaviorImpl : public AAUndefinedBehavior { } else { if (isa(V)) { auto &NonNullAA = A.getAAFor( - *this, IRPosition::returned(*getAnchorScope())); + *this, IRPosition::returned(*getAnchorScope()), + /* TrackDependence */ false); if (NonNullAA.isKnownNonNull()) FoundUB = true; }