OSDN Git Service

[InstCombine][InstSimplify] Use APInt::isNullValue/isOneValue to reduce compiled...
authorCraig Topper <craig.topper@gmail.com>
Wed, 7 Jun 2017 07:40:37 +0000 (07:40 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 7 Jun 2017 07:40:37 +0000 (07:40 +0000)
commiteb370b47577e668a157a3ae874bb75ae89e07224
tree634eb0034696c2d8b9f7046719ee3af24f9ba361
parente57d4f53f8423d44cce395d9668dbcd0765d92a7
[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
include/llvm/IR/PatternMatch.h
lib/Analysis/InstructionSimplify.cpp
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombineCasts.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
lib/Transforms/InstCombine/InstCombineSelect.cpp
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp