mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user