aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-08 06:50:51 +0000
committerChris Lattner <sabre@nondot.org>2008-12-08 06:50:51 +0000
commit0a3ba71a0576fbde5b8ce1ff276f63f3f3d16229 (patch)
tree8d4e141adf5312daa138c60f561a00ad0bdf8e93 /lib/Target/CppBackend/CPPBackend.cpp
parent295d4e953a1214f60632220b9fcb31c1af8b0c27 (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/Target/CppBackend/CPPBackend.cpp')
0 files changed, 0 insertions, 0 deletions