From 0cc9c022550e5dd8b0efd4526274ab082b86dc5c Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Tue, 5 May 2020 11:20:08 -0500 Subject: [PATCH] [Attributor][NFC] Minor code cleanups to minimize follow up diffs --- llvm/lib/Transforms/IPO/AttributorAttributes.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index c90dcaa..a727f31 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -5617,7 +5617,6 @@ struct AAMemoryBehaviorCallSiteArgument final : AAMemoryBehaviorArgument { removeKnownBits(NO_READS); removeAssumedBits(NO_READS); } - } else { } AAMemoryBehaviorArgument::initialize(A); } @@ -5701,8 +5700,10 @@ struct AAMemoryBehaviorCallSite final : AAMemoryBehaviorImpl { void initialize(Attributor &A) override { AAMemoryBehaviorImpl::initialize(A); Function *F = getAssociatedFunction(); - if (!F || !A.isFunctionIPOAmendable(*F)) + if (!F || !A.isFunctionIPOAmendable(*F)) { indicatePessimisticFixpoint(); + return; + } } /// See AbstractAttribute::updateImpl(...). @@ -6400,8 +6401,10 @@ struct AAMemoryLocationCallSite final : AAMemoryLocationImpl { void initialize(Attributor &A) override { AAMemoryLocationImpl::initialize(A); Function *F = getAssociatedFunction(); - if (!F || !A.isFunctionIPOAmendable(*F)) + if (!F || !A.isFunctionIPOAmendable(*F)) { indicatePessimisticFixpoint(); + return; + } } /// See AbstractAttribute::updateImpl(...). -- 2.7.4