make tblgen autogenerate the nocapture intrinsics for

llvm.memcpy/memset/memmove.  This allows removal of some 
hackish code from basicaa.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-01-12 02:41:37 +00:00
parent 10dae94be2
commit d4a2700fdc
2 changed files with 22 additions and 11 deletions

View File

@ -69,10 +69,6 @@ static bool AddressMightEscape(const Value *V) {
if (cast<CallInst>(I)->paramHasAttr(UI.getOperandNo(),
Attribute::NoCapture))
continue;
// FIXME: MemIntrinsics should have their operands marked nocapture!
if (isa<MemIntrinsic>(I))
continue; // next use
return true;
case Instruction::Invoke:
// If the argument to the call has the nocapture attribute, then the call