commit | c9b3b5dd57560678ec0fd265402360baf86c359c | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Tue Aug 08 16:29:35 2017 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Tue Aug 08 16:29:35 2017 +0000 |
tree | fecda77efe394c41000a55ca85453b19a77d184f | |
parent | b22eff0ff63a669516f4a68a0bc5baeabfa93119 [diff] |
[KnownBits][ValueTracking] Move the math for calculating known bits for add/sub into a static method in KnownBits object 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 Revision: https://reviews.llvm.org/D36433 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310378 91177308-0d34-0410-b5e6-96231b3b80d8