[llvm-commits] [llvm] r85865 - /llvm/trunk/lib/Analysis/CaptureTracking.cpp
Chris Lattner
sabre at nondot.org
Mon Nov 2 21:34:52 PST 2009
Author: lattner
Date: Mon Nov 2 23:34:51 2009
New Revision: 85865
URL: http://llvm.org/viewvc/llvm-project?rev=85865&view=rev
Log:
remove a check of isFreeCall: the argument to free is already nocapture so the generic call code works fine.
Modified:
llvm/trunk/lib/Analysis/CaptureTracking.cpp
Modified: llvm/trunk/lib/Analysis/CaptureTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CaptureTracking.cpp?rev=85865&r1=85864&r2=85865&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CaptureTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/CaptureTracking.cpp Mon Nov 2 23:34:51 2009
@@ -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 @@
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
More information about the llvm-commits
mailing list