commit | eb370b47577e668a157a3ae874bb75ae89e07224 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Wed Jun 07 07:40:37 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Wed Jun 07 07:40:37 2017 +0000 |
tree | 634eb0034696c2d8b9f7046719ee3af24f9ba361 | |
parent | e57d4f53f8423d44cce395d9668dbcd0765d92a7 [diff] |
[InstCombine][InstSimplify] Use APInt::isNullValue/isOneValue to reduce compiled code for comparing APInts with 0 and 1. NFC These methods are specifically optimized to only counting leading zeros without an additional uint64_t compare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304876 91177308-0d34-0410-b5e6-96231b3b80d8