[TargetLowering] SimplifyDemandedVectorElts - add DemandedElts mask to ISD::BITCAST...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 10 Mar 2020 13:38:33 +0000 (13:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 10 Mar 2020 13:39:10 +0000 (13:39 +0000)
commite71fb46a8fd15fedb763c7bf6a234bdd15022180
treeb756cfe5d0d6dacc2f8c7817e0ccb09a67239d7c
parent6b37c476a2d4e63f6c02ca8996e0e92ae3db3282
[TargetLowering] SimplifyDemandedVectorElts - add DemandedElts mask to ISD::BITCAST SimplifyDemandedBits call.

This fixes most of the regressions introduced in the rG4bc6f6332028 bugfix. The vector-trunc.ll issue should be fixed by D66004.
14 files changed:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/PowerPC/pre-inc-disable.ll
llvm/test/CodeGen/PowerPC/srem-vector-lkk.ll
llvm/test/CodeGen/PowerPC/urem-vector-lkk.ll
llvm/test/CodeGen/X86/broadcast-elm-cross-splat-vec.ll
llvm/test/CodeGen/X86/load-partial.ll
llvm/test/CodeGen/X86/packss.ll
llvm/test/CodeGen/X86/pr30562.ll
llvm/test/CodeGen/X86/shrink_vmul.ll
llvm/test/CodeGen/X86/vector-mul.ll
llvm/test/CodeGen/X86/vector-shuffle-256-v16.ll
llvm/test/CodeGen/X86/vector-shuffle-v1.ll
llvm/test/CodeGen/X86/vector-trunc-math.ll
llvm/test/CodeGen/X86/vector-trunc.ll