[InstCombine] Add some initial SimplifyDemandedBits tests for removal of ashr with...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 23 Mar 2022 18:27:41 +0000 (18:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 23 Mar 2022 19:07:10 +0000 (19:07 +0000)
commitb75399a5e20f51b9d2fa89c68575e0564a8eede6
tree7d36fb2cc462cc07ca08ad29d9c1aa7b0dc6a3f8
parentf833aab0d0bf1bd9e9903a1398e429f431532f5f
[InstCombine] Add some initial SimplifyDemandedBits tests for removal of ashr with sufficient signbits

We have this in SelectionDAG but it's missing in InstCombine

Based off PR21929 test case
llvm/test/Transforms/InstCombine/ashr-demand.ll [new file with mode: 0644]