I want to reuse this code in SimplifyDemandedBits handling of Add/Sub. This will make that easier.
Wonder if we should use it in SelectionDAG's computeKnownBits too.
Paths
| Differential D36433
[KnownBits][ValueTracking] Move the math for calculating known bits for add/sub into a static method in KnownBits object ClosedPublic Authored by craig.topper on Aug 7 2017, 3:52 PM.
Details Summary I want to reuse this code in SimplifyDemandedBits handling of Add/Sub. This will make that easier. Wonder if we should use it in SelectionDAG's computeKnownBits too.
Diff Detail Event TimelineComment Actions If we can share this with SelDAG as well it would be even more awesome. I have no objections to this refactoring but please wait to hear from David This revision is now accepted and ready to land.Aug 8 2017, 8:58 AM Closed by commit rL310378: [KnownBits][ValueTracking] Move the math for calculating known bits for add/sub… (authored by ctopper). · Explain WhyAug 8 2017, 9:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 110107 include/llvm/Support/KnownBits.h
lib/Analysis/ValueTracking.cpp
lib/Support/CMakeLists.txt
lib/Support/KnownBits.cpp
|