commit | 0a3ba71a0576fbde5b8ce1ff276f63f3f3d16229 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Dec 08 06:50:51 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Dec 08 06:50:51 2008 +0000 |
tree | 8d4e141adf5312daa138c60f561a00ad0bdf8e93 | |
parent | 295d4e953a1214f60632220b9fcb31c1af8b0c27 [diff] |
Speed up getABITypeSize by turning a i64 mul and div into an AND. This is speedup on any reasonable target, but particularly on 32-bit targets where this often turns into a libcall like udivdi3. We know that alignments are a power of two but the compiler doesn't. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60688 91177308-0d34-0410-b5e6-96231b3b80d8