OSDN Git Service

[InstCombine] Add an InstCombine specific wrapper around isKnownToBeAPowerOfTwo to...
authorCraig Topper <craig.topper@gmail.com>
Thu, 25 May 2017 21:51:12 +0000 (21:51 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 25 May 2017 21:51:12 +0000 (21:51 +0000)
commit32c2620ed2501fb05d6525ba14f2afb1cfbe5090
tree1bca53f9f6126eb2723cebf9733d843b6d4d68a8
parentd1635911382ac70019dcda1032c8c961bb7e7d76
[InstCombine] Add an InstCombine specific wrapper around isKnownToBeAPowerOfTwo to shorten code. NFC

We have wrappers for several other ValueTracking methods that take care of passing all of the analysis and assumption cache parameters. This extends it to isKnownToBeAPowerOfTwo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp