Make changes to rev 84292 as requested by Chris Lattner.
authorVictor Hernandez <vhernandez@apple.com>
Wed, 21 Oct 2009 19:11:40 +0000 (19:11 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Wed, 21 Oct 2009 19:11:40 +0000 (19:11 +0000)
commit68afa54033eccda0f55e920cb548588e71a45418
treea8c1c6300819ecbde4ff9cdc64e7b72ae0f370a5
parentb27b51aaa6602a2062ab0f778b87628fb70e0a0b
Make changes to rev 84292 as requested by Chris Lattner.

Most changes are cleanup, but there is 1 correctness fix:
I fixed InstCombine so that the icmp is removed only if the malloc call is removed (which requires explicit removal because the Worklist won't DCE any calls since they can have side-effects).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84772 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/InstCombine/malloc2.ll