diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-12-08 06:50:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-12-08 06:50:51 +0000 |
| commit | 0a3ba71a0576fbde5b8ce1ff276f63f3f3d16229 (patch) | |
| tree | 8d4e141adf5312daa138c60f561a00ad0bdf8e93 /lib/CodeGen/LiveVariables.cpp | |
| 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
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions
