This patch adds isNegative, isNonNegative for querying whether the sign bit is known. It also adds makeNegative and makeNonNegative for controlling the sign bit.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D32651
[KnownBits] Add methods for determining if the known bits represent a negative/nonnegative number and add methods for changing the negative/nonnegative state ClosedPublic Authored by craig.topper on Apr 28 2017, 11:18 AM.
Details Summary This patch adds isNegative, isNonNegative for querying whether the sign bit is known. It also adds makeNegative and makeNonNegative for controlling the sign bit.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 29 2017, 1:51 AM Closed by commit rL301747: [KnownBits] Add methods for determining if the known bits represent a… (authored by ctopper). · Explain WhyApr 29 2017, 9:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 97194 llvm/trunk/include/llvm/Support/KnownBits.h
llvm/trunk/lib/Analysis/ValueTracking.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
|