[DAG] Peek through trunc when combining select into shifts.
authorAmaury Séchet <deadalnix@gmail.com>
Sat, 30 Apr 2022 23:45:28 +0000 (23:45 +0000)
committerAmaury Séchet <deadalnix@gmail.com>
Fri, 23 Jun 2023 00:35:39 +0000 (00:35 +0000)
commit34d8c5b9ceae5002ae9cd1cbfcb1fd998018bebf
tree79c5daf5c60c0308048840d7c57912e8ae4c58fd
parent65b710efc19d46932308097258ae1f8167edcbf2
[DAG] Peek through trunc when combining select into shifts.

This fixes a regression in D127115

Depends on D127115

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D151916
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/dagcombine-select.ll