[SelectionDAG] Replace APInt.lshr().trunc() with APInt.extractBits() where possible...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Jul 2021 15:32:41 +0000 (16:32 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Jul 2021 15:33:00 +0000 (16:33 +0100)
commit80dd591610cbdd9f5898f138a4b8df7543ef44ff
tree1a05f469016e6df87ebf74e84d953553c5614e41
parente2e44c3da93c0c8b6e1322dcfbcd9fb18ac702eb
[SelectionDAG] Replace APInt.lshr().trunc() with APInt.extractBits() where possible. NFC.

This also allows us to use KnownBits::extractBits in one case.
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp