[SelectionDAG] Add FSHL/FSHR support to computeKnownBits
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 16 Dec 2018 13:33:37 +0000 (13:33 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 16 Dec 2018 13:33:37 +0000 (13:33 +0000)
commit0ef977b83dae860f0c00a1f23eaaefeb82913b7e
tree34fa58c997877dd3c62ec2880154289cad749bab
parent780b3ca775852acacc4313e8d7ff9238184d7df2
[SelectionDAG] Add FSHL/FSHR support to computeKnownBits

Also exposes an issue in DAGCombiner::visitFunnelShift where we were assuming the shift amount had the result type (after legalization it'll have the targets shift amount type).

llvm-svn: 349298
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/known-bits.ll