From 2089cd09baf11ba3e0914c12467b41a7b3fc37cd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jan 2009 02:41:37 +0000 Subject: make tblgen autogenerate the nocapture intrinsics for llvm.memcpy/memset/memmove. This allows removal of some hackish code from basicaa. llvm-svn: 62071 --- llvm/lib/Analysis/BasicAliasAnalysis.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp') diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp index 9608a28edd8..92cff8ea969 100644 --- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp +++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp @@ -69,10 +69,6 @@ static bool AddressMightEscape(const Value *V) { if (cast(I)->paramHasAttr(UI.getOperandNo(), Attribute::NoCapture)) continue; - - // FIXME: MemIntrinsics should have their operands marked nocapture! - if (isa(I)) - continue; // next use return true; case Instruction::Invoke: // If the argument to the call has the nocapture attribute, then the call -- cgit v1.2.3