commit | e738fc5145984235a8f084077791271c4d266236 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Fri Mar 15 20:55:27 2013 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Fri Mar 15 20:55:27 2013 +0000 |
tree | 913ac747058266d19a5419a0aca03288268c620d | |
parent | 1fd8d46d222fab7f17b91846e2c50bef640a60a0 [diff] |
[AST] Add a fast path to ConstantArrayType::getNumAddressingBits(). - This fast path is almost 100% effective on real code, and lets us avoid multiple allocations of 128-bit APSInt objects in the common case. - As with any overflow-check-skipping-code, I'd appreciate someone double checking my logic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177183 91177308-0d34-0410-b5e6-96231b3b80d8