From d9a2fcb1eb39ca5041cc80ef93a7d9a09b258b94 Mon Sep 17 00:00:00 2001 From: Igor Laevsky Date: Mon, 17 Aug 2015 15:56:56 +0000 Subject: [PATCH] [BasicAliasAnalysis] Do not check ModRef table for intrinsics All possible ModRef behaviours can be completely represented using existing LLVM IR attributes. Differential Revision: http://reviews.llvm.org/D12033 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245224 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BasicAliasAnalysis.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index c2a530a44be..c6845ff4370 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -532,13 +532,6 @@ BasicAliasAnalysis::getModRefBehavior(const Function *F) { if (F->doesNotAccessMemory()) return FMRB_DoesNotAccessMemory; - // For intrinsics, we can check the table. - if (Intrinsic::ID iid = F->getIntrinsicID()) { -#define GET_INTRINSIC_MODREF_BEHAVIOR -#include "llvm/IR/Intrinsics.gen" -#undef GET_INTRINSIC_MODREF_BEHAVIOR - } - FunctionModRefBehavior Min = FMRB_UnknownModRefBehavior; // If the function declares it only reads memory, go with that. -- 2.34.1