]> granicus.if.org Git - llvm/commit
[TargetLowering] SimplifyMultipleUseDemandedBits - add BITCAST pass through support...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 27 Jul 2019 14:11:59 +0000 (14:11 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 27 Jul 2019 14:11:59 +0000 (14:11 +0000)
commit803ac756ab069aa88458507339055e38fe0e1a97
tree2d0fcef297224b63855ce165def9d90894a1d3c5
parent254e2348869f99c987f1630ec5a146918f7fe4d5
[TargetLowering] SimplifyMultipleUseDemandedBits - add BITCAST pass through support (Reapplied)

This allows us to peek through BITCASTs, attempt to simplify the source operand, and then bitcast back.

This reapplies rL367091 which was reverted at rL367118 - we were inconsistently peeking through the bitcasts to the source value.

Fixes PR42777

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367174 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/urem-seteq-vec-nonsplat.ll
test/CodeGen/X86/vector-reduce-mul-widen.ll
test/CodeGen/X86/vector-reduce-mul.ll
test/CodeGen/X86/vector-reduce-umax.ll
test/CodeGen/X86/vector-reduce-umin.ll