commit | f5dc5ae36bd7f494aa1fd937be7a8177b9b277fa | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Sun Nov 16 02:20:08 2014 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Sun Nov 16 02:20:08 2014 +0000 |
tree | b5984619dfc0bcf8a9ba3a66ae73dfd1f5963c77 | |
parent | 37f645cb34590ccb20717a914240a0b435b8103c [diff] |
InstSimplify: Optimize ICmpInst xform that uses computeKnownBits A few things: - computeKnownBits is relatively expensive, let's delay its use as long as we can. - Don't create two APInt values just to run computeKnownBits on a ConstantInt, we already know the exact value! - Avoid creating a temporary APInt value in order to calculate unary negation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222092 91177308-0d34-0410-b5e6-96231b3b80d8