From ff4b2bbc4985e6a486a15cab33f0291b55299621 Mon Sep 17 00:00:00 2001 From: Hideto Ueno Date: Thu, 12 Mar 2020 15:25:24 +0000 Subject: [PATCH] [Attributor][FIX] Add a missing dependence track in noalias deduction --- lib/Transforms/IPO/Attributor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index d0bd1cc6692..0cecfd4461d 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/lib/Transforms/IPO/Attributor.cpp @@ -2812,6 +2812,8 @@ struct AANoAliasCallSiteArgument final : AANoAliasImpl { return false; } + A.recordDependence(NoAliasAA, *this, DepClassTy::OPTIONAL); + const IRPosition &VIRP = IRPosition::value(getAssociatedValue()); auto &NoCaptureAA = A.getAAFor(*this, VIRP, /* TrackDependence */ false);