[DAG] Do not combine any_ext when we combine and into zext.
authorAmaury Séchet <deadalnix@gmail.com>
Sun, 1 May 2022 15:58:32 +0000 (15:58 +0000)
committerAmaury Séchet <deadalnix@gmail.com>
Thu, 19 Jan 2023 12:37:05 +0000 (12:37 +0000)
commit2826869d7b3119f96b973f5cd15128162334f1fe
tree09a958148b8db29845597ff199805ab2be712754
parent1499cce2646cbf4dd78f8534a4e71bd856b10994
[DAG] Do not combine any_ext when we combine and into zext.

This transofrm loses information that can be useful for other transforms.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D141883
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/clear_upper_vector_element_bits.ll
llvm/test/CodeGen/X86/illegal-bitfield-loadstore.ll
llvm/test/CodeGen/X86/known-signbits-vector.ll
llvm/test/CodeGen/X86/ushl_sat.ll
llvm/test/CodeGen/X86/ushl_sat_vec.ll