[KnownBits] Move ValueTracking/SelectionDAG UDIV KnownBits handling to KnownBits...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 5 Nov 2020 13:42:27 +0000 (13:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 5 Nov 2020 13:42:42 +0000 (13:42 +0000)
commit32bee18b84226e817cba7d03abf60c4900fea5e1
tree63f921a649ada9387af766fa5dd5327b90918858
parent2f84b59a4cf92a0ce1b985e7f44e17483efa33c0
[KnownBits] Move ValueTracking/SelectionDAG UDIV KnownBits handling to KnownBits::udiv. NFCI.

Both these have the same implementation - so move them to a single KnownBits copy.

GlobalISel will be able to use this as well with minimal effort.
llvm/include/llvm/Support/KnownBits.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Support/KnownBits.cpp
llvm/unittests/Support/KnownBitsTest.cpp