Auto-upgrade free instructions to calls to the builtin free function.
authorVictor Hernandez <vhernandez@apple.com>
Sat, 24 Oct 2009 04:23:03 +0000 (04:23 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Sat, 24 Oct 2009 04:23:03 +0000 (04:23 +0000)
commit66284e063a1e46500acae48bdc0e4a00652021d1
tree7326efcf20c334046c044082a205dc2eb1f17466
parent5a850beb2e3032e6ff3474ce5317f5454060328c
Auto-upgrade free instructions to calls to the builtin free function.
Update all analysis passes and transforms to treat free calls just like FreeInst.
Remove RaiseAllocations and all its tests since FreeInst no longer needs to be raised.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84987 91177308-0d34-0410-b5e6-96231b3b80d8
30 files changed:
docs/Passes.html
include/llvm-c/Transforms/IPO.h
include/llvm/Analysis/MallocHelper.h
include/llvm/Instructions.h
include/llvm/LinkAllPasses.h
include/llvm/Support/StandardPasses.h
include/llvm/Transforms/IPO.h
lib/Analysis/IPA/Andersens.cpp
lib/Analysis/IPA/GlobalsModRef.cpp
lib/Analysis/MallocHelper.cpp
lib/Analysis/MemoryDependenceAnalysis.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Transforms/IPO/CMakeLists.txt
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/IPO/IPO.cpp
lib/Transforms/IPO/RaiseAllocations.cpp [deleted file]
lib/Transforms/Scalar/DeadStoreElimination.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/LowerAllocations.cpp
lib/VMCore/Instructions.cpp
test/Transforms/InstCombine/malloc-free-delete.ll
test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll [deleted file]
test/Transforms/RaiseAllocations/2007-10-17-InvokeFree.ll [deleted file]
test/Transforms/RaiseAllocations/FreeCastConstantExpr.ll [deleted file]
test/Transforms/RaiseAllocations/dg.exp [deleted file]
utils/findoptdiff