[DAG] Peek through zext/trunc in haveNoCommonBitsSet.
authorAmaury Séchet <deadalnix@gmail.com>
Fri, 7 Apr 2023 21:32:31 +0000 (21:32 +0000)
committerAmaury Séchet <deadalnix@gmail.com>
Tue, 11 Apr 2023 11:44:15 +0000 (11:44 +0000)
commit9041e1fa29a47bd56da4e81edc379616abad16c1
tree4ccef3355e1f087f7900ffa0bb08003758680b84
parent25ed0c2c33a39d2ed60e1bb0f528958043472d8d
[DAG] Peek through zext/trunc in haveNoCommonBitsSet.

This limitation was discovered thanks to some regression in D127115 .

Reviewed By: RKSimon

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