Extract method haveNoCommonBitsSet so that we don't have to duplicate this logic in
InstCombine and SeparateConstOffsetFromGEP.
This patch also makes SeparateConstOffsetFromGEP more precise by passing
DominatorTree to computeKnownBits.
Paths
| Differential D9734
[ValueTracking] refactor: extract method haveNoCommonBitsSet ClosedPublic Authored by jingyue on May 12 2015, 10:49 PM.
Details Summary Extract method haveNoCommonBitsSet so that we don't have to duplicate this logic in This patch also makes SeparateConstOffsetFromGEP more precise by passing
Diff Detail Event Timelinejingyue updated this object. majnemer edited edge metadata. Comment ActionsLooks pretty straightforward, LGTM.
This revision is now accepted and ready to land.May 13 2015, 11:59 PM Comment Actions LGTM
jingyue retitled this revision from [ValueTracking] refactor: extract method noCommonSetBits to [ValueTracking] refactor: extract method haveNoCommonBitsSet.May 14 2015, 4:45 PM jingyue updated this object.
Revision Contents
Diff 25711 include/llvm/Analysis/ValueTracking.h
lib/Analysis/ValueTracking.cpp
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
test/Transforms/SeparateConstOffsetFromGEP/NVPTX/value-tracking-domtree.ll
|
hasNoCommonsBitsSet sounds a little more natural to me.