[DAG] computeKnownBits - Move ISD::SRA handling into KnownBits::ashr
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 3 Nov 2020 18:09:15 +0000 (18:09 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 3 Nov 2020 18:09:33 +0000 (18:09 +0000)
commite9b88c754ad31bcc0dd582a04402b5de1a28ef48
treed6e42c1d2e6b8f59b7535d36bc8f99ce84104139
parent00eff96e1d02969ff1c1416a266b4d29506cd1c0
[DAG] computeKnownBits - Move ISD::SRA handling into KnownBits::ashr

As discussed on D90527, we should be trying to move shift handling functionality into KnownBits to avoid code duplication in SelectionDAG/GlobalISel/ValueTracking.
llvm/include/llvm/Support/KnownBits.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Support/KnownBits.cpp