Teach instcombine to promote stuff like (cast (malloc sbyte, 8*X) to int*)
authorChris Lattner <sabre@nondot.org>
Thu, 27 Oct 2005 06:24:46 +0000 (06:24 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 Oct 2005 06:24:46 +0000 (06:24 +0000)
commite679288a30e150f4b1bbe6cc1ccd80fb650a0d7b
tree1aedabebfbe25fc4371c6cca580816809cbe18b1
parent8142b0a54bd443f8813d914ba8b953964ae1e914
Teach instcombine to promote stuff like (cast (malloc sbyte, 8*X) to int*)
into: malloc int, (2*X)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24032 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp