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.
Differential D36433
[KnownBits][ValueTracking] Move the math for calculating known bits for add/sub into a static method in KnownBits object craig.topper on Aug 7 2017, 3:52 PM. Authored by
Details 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 |