Add FreeInst to the "is a call" check for Insts that are calls, but
not intrinsics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83441 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp
index b909203..df03b37 100644
--- a/lib/Transforms/Utils/InlineCost.cpp
+++ b/lib/Transforms/Utils/InlineCost.cpp
@@ -135,8 +135,8 @@
           NumInsts += 5;
       }
       
-      // This, too, is a call.
-      if (isa<MallocInst>(II))
+      // These, too, are calls.
+      if (isa<MallocInst>(II) || isa<FreeInst>(II))
 	NumInsts += 5;
 
       if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {