[X86] getTargetVShiftNode - peek through any zext node
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Mar 2022 17:41:28 +0000 (17:41 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Mar 2022 17:41:45 +0000 (17:41 +0000)
commit588d97e2461964ac5b821b946276c5600e0139a3
treeafdf2ecde284a24b8de8d16d78b6d1cfcb6854e9
parentbcc65fb491ca6e83e1ea300f4462a2f56d0b5937
[X86] getTargetVShiftNode - peek through any zext node

If the shift amount has been zero-extended, peek through as this might help us further canonicalize the shift amount.

Fixes regression mentioned in rG147cfcbef1255ba2b4875b76708dab1a685085f5
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shift-ashr-256.ll