[DAG] Fix SDLoc mismatch in (shl (srl x, c1), c2) -> and(shift(x,c3)) fold
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 15 Jun 2022 10:07:48 +0000 (11:07 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 15 Jun 2022 10:07:59 +0000 (11:07 +0100)
commitf096d5926ddc19030550f10589c3c219f340da6c
tree38468e66122297143b8313cd7f810e25c48a922d
parent8fcdd625856b2e7df2fdb3a4c57efedb35e4d7c1
[DAG] Fix SDLoc mismatch in (shl (srl x, c1), c2) -> and(shift(x,c3)) fold

Noticed by @craig.topper on D125836 which uses a tweaked copy of the same code.

Differential Revision: https://reviews.llvm.org/D127772
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AMDGPU/copy-illegal-type.ll
llvm/test/CodeGen/AMDGPU/load-lo16.ll
llvm/test/CodeGen/AMDGPU/shl.v2i16.ll
llvm/test/CodeGen/X86/2009-05-30-ISelBug.ll
llvm/test/CodeGen/X86/combine-shl.ll
llvm/test/CodeGen/X86/rotate-extract.ll
llvm/test/CodeGen/X86/shift-mask.ll
llvm/test/CodeGen/X86/sse2-vector-shifts.ll