commit | 1ced44b92a80f2d4963f02d9273d82055e5da688 | [log] [tgz] |
---|---|---|
author | George Burgess IV <george.burgess.iv@gmail.com> | Tue Dec 20 23:46:36 2016 +0000 |
committer | George Burgess IV <george.burgess.iv@gmail.com> | Tue Dec 20 23:46:36 2016 +0000 |
tree | 152ad97a998b9a1b5ad9ba4d5fa69b8fa7895647 | |
parent | ca7371d97574e3d67f482595ae6cff3955afbbd2 [diff] |
[Analysis] Centralize objectsize lowering logic. We're currently doing nearly the same thing for @llvm.objectsize in three different places: two of them are missing checks for overflow, and one of them could subtly break if InstCombine gets much smarter about removing alloc sites. Seems like a good idea to not do that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290214 91177308-0d34-0410-b5e6-96231b3b80d8