[llvm] 7082381 - [Attributor][NFC] Fix dependency type in AAUndefinedBehaviorImpl::updateImpl
Shinji Okumura via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 20:39:09 PDT 2020
Author: Shinji Okumura
Date: 2020-08-30T12:34:50+09:00
New Revision: 7082381735e7b663e787dbac2e6e59853c2f9b2e
URL: https://github.com/llvm/llvm-project/commit/7082381735e7b663e787dbac2e6e59853c2f9b2e
DIFF: https://github.com/llvm/llvm-project/commit/7082381735e7b663e787dbac2e6e59853c2f9b2e.diff
LOG: [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
Added:
Modified:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 5c4754c57387..83bb8343f0f0 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<AANonNull>(*this, CalleeArgumentIRP);
+ auto &NonNullAA = A.getAAFor<AANonNull>(*this, CalleeArgumentIRP,
+ /* TrackDependence */ false);
if (!NonNullAA.isKnownNonNull())
continue;
- const auto &ValueSimplifyAA =
- A.getAAFor<AAValueSimplify>(*this, IRPosition::value(*ArgVal));
+ const auto &ValueSimplifyAA = A.getAAFor<AAValueSimplify>(
+ *this, IRPosition::value(*ArgVal), /* TrackDependence */ false);
Optional<Value *> SimplifiedVal =
ValueSimplifyAA.getAssumedSimplifiedValue(A);
@@ -2071,7 +2072,8 @@ struct AAUndefinedBehaviorImpl : public AAUndefinedBehavior {
} else {
if (isa<ConstantPointerNull>(V)) {
auto &NonNullAA = A.getAAFor<AANonNull>(
- *this, IRPosition::returned(*getAnchorScope()));
+ *this, IRPosition::returned(*getAnchorScope()),
+ /* TrackDependence */ false);
if (NonNullAA.isKnownNonNull())
FoundUB = true;
}
More information about the llvm-commits
mailing list