[DAG] Cleanup the (zext (shl (zext x), cst)) -> (shl (zext x), cst) fold. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 12 Mar 2023 15:00:11 +0000 (15:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 12 Mar 2023 15:01:33 +0000 (15:01 +0000)
commit4d7da0e7116a1247fefa732b96abf87f0f17c442
tree988315e42e128abc4072b4eb37314f87b8a15f27
parentf759275c1c8ed91f19a6b8db228115c7f75d460b
[DAG] Cleanup the (zext (shl (zext x), cst)) -> (shl (zext x), cst) fold. NFC.

Preliminary cleanup before adding some additional legality and value tracking handling.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp