diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-10 16:27:42 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-10 16:27:42 +0000 |
commit | ee187fd6e7c766773ff68aa667f56cf245c5ee3b (patch) | |
tree | f84065e788a643050bb8b008a4ebeec60bbe89fe /llvm/lib/CodeGen | |
parent | bb2338e9392a9e2cad690c3658382eee274e40ac (diff) | |
download | bcm5719-llvm-ee187fd6e7c766773ff68aa667f56cf245c5ee3b.tar.gz bcm5719-llvm-ee187fd6e7c766773ff68aa667f56cf245c5ee3b.zip |
[SelectionDAG] Add support for vector demandedelts in MUL opcodes
llvm-svn: 286471
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index e272315d826..5ad4dcb5b88 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2166,11 +2166,13 @@ void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero, break; } case ISD::MUL: { - computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); - computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); + computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, DemandedElts, + Depth + 1); + computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, DemandedElts, + Depth + 1); // If low bits are zero in either operand, output low known-0 bits. - // Also compute a conserative estimate for high known-0 bits. + // Also compute a conservative estimate for high known-0 bits. // More trickiness is possible, but this is sufficient for the // interesting case of alignment computation. KnownOne.clearAllBits(); |