[PATCH] D32651: [KnownBits] Add methods for determining if the known bits represent a negative/nonnegative number and add methods for changing the negative/nonnegative state
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 11:18:19 PDT 2017
craig.topper created this revision.
This patch adds isNegative, isNonNegative for querying whether the sign bit is known. It also adds makeNegative and makeNonNegative for controlling the sign bit.
https://reviews.llvm.org/D32651
Files:
include/llvm/Support/KnownBits.h
lib/Analysis/ValueTracking.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32651.97128.patch
Type: text/x-patch
Size: 14142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170428/524eac86/attachment.bin>
More information about the llvm-commits
mailing list