remove a check of isFreeCall: the argument to free is already nocapture so the generi...
authorChris Lattner <sabre@nondot.org>
Tue, 3 Nov 2009 05:34:51 +0000 (05:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Nov 2009 05:34:51 +0000 (05:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85865 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CaptureTracking.cpp

index d0baaca9600d037137d85a376fe1e05ff03107da..f615881829c65bfda453eb5a36ab44cd0bcc957f 100644 (file)
@@ -17,7 +17,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Analysis/CaptureTracking.h"
-#include "llvm/Analysis/MemoryBuiltins.h"
 #include "llvm/Instructions.h"
 #include "llvm/Value.h"
 #include "llvm/ADT/SmallSet.h"
@@ -49,9 +48,6 @@ bool llvm::PointerMayBeCaptured(const Value *V, bool ReturnCaptures) {
 
     switch (I->getOpcode()) {
     case Instruction::Call:
-      if (isFreeCall(I))
-        // Freeing a pointer does not cause it to be captured.
-        break;
     case Instruction::Invoke: {
       CallSite CS = CallSite::get(I);
       // Not captured if the callee is readonly, doesn't return a copy through