commit | 0b18e59336dcb18e036540dd667fed8d17c3cc09 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Mar 17 19:36:00 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Mar 17 19:36:00 2009 +0000 |
tree | 5e6e5d3e783ba75a8e4fae7565ea30cc7655c2d1 | |
parent | 46d232d4bc198ce4a347e74f331a99142a02276d [diff] |
Fix codegen to compute the size of an allocation by multiplying the size by the array amount as an i32 value instead of promoting from i32 to i64 then doing the multiply. Not doing this broke wrap-around assumptions that the optimizers (validly) made. The ultimate real fix for this is to introduce i64 version of alloca and remove mallocinst. This fixes PR3829 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67093 91177308-0d34-0410-b5e6-96231b3b80d8