OSDN Git Service

[DAGCombine] Simplify funnel shifts with undef/zero args to bitshifts
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 10 Feb 2019 17:04:00 +0000 (17:04 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 10 Feb 2019 17:04:00 +0000 (17:04 +0000)
commitbdd96a725f7787ec0e6e232545bec8afcbd3d897
treebc578306ba98c3edf662fc08dd97722ab4f95e73
parent618693a06bf3a0d4d3d7e6c22798a69329c01db9
[DAGCombine] Simplify funnel shifts with undef/zero args to bitshifts

Now that we have SimplifyDemandedBits support for funnel shifts (rL353539), we need to simplify funnel shifts back to bitshifts in cases where either argument has been folded to undef/zero.

Differential Revision: https://reviews.llvm.org/D58009

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/funnel-shift.ll