Simon Pilgrim e9caa37e9c [DAG] Move lshr narrowing from visitANDLike to SimplifyDemandedBits
Inspired by some of the cases from D145468

Let SimplifyDemandedBits handle the narrowing of lshr to half-width if we don't require the upper bits, the narrowed shift is profitable and the zext/trunc are free.

A future patch will propose the equivalent shl narrowing combine.

Differential Revision: https://reviews.llvm.org/D146121
2023-07-17 15:50:09 +01:00
..
2023-06-18 16:02:59 +01:00
2023-07-17 14:19:15 +00:00
2022-11-17 17:22:52 +08:00
2023-03-05 00:48:53 -08:00
2022-12-17 16:15:22 +05:30
2023-07-12 16:32:14 +01:00
2022-12-17 16:15:22 +05:30
2023-06-21 10:40:48 -04:00
2023-05-14 21:51:44 +08:00