[DAG] Peek through zext/trunc when matching (or (and X, (not Y)), Y).
authorAmaury Séchet <deadalnix@gmail.com>
Fri, 7 Apr 2023 23:31:13 +0000 (23:31 +0000)
committerAmaury Séchet <deadalnix@gmail.com>
Tue, 11 Apr 2023 13:48:22 +0000 (13:48 +0000)
commit91105df3dfeb6c5589de987c1c1bdd3d7fe781d8
tree6747141d3173e67e7a117beccf212e655ce8cb65
parent92bc7f5428168535cb1ee6c92f739f0b7f72aa5d
[DAG] Peek through zext/trunc when matching (or (and X, (not Y)), Y).

This shows up in the wild, notably as a regression in D127115 .

Depends on D147821

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D147827
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/add-and-not.ll