diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-10-28 13:42:23 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-10-28 13:42:23 +0000 |
commit | 8c043061e55859c82f119389ff58533c771b8596 (patch) | |
tree | 4930d08fe0970e0ba089706050f7aa16cb1c7a28 | |
parent | 755cef1ba89fd11de01dcbefd7025b5dbd864c93 (diff) | |
download | bcm5719-llvm-8c043061e55859c82f119389ff58533c771b8596.tar.gz bcm5719-llvm-8c043061e55859c82f119389ff58533c771b8596.zip |
[SelectionDAG] Tidyup UDIV computeKnownBits implementation
No need to clear KnownOne2/KnownZero2 bits as the next call to computeKnownBits will overwrite them anyway
llvm-svn: 285398
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index f741c4b478e..e6b8d2f5ade 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2102,8 +2102,6 @@ void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero, computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); unsigned LeadZ = KnownZero2.countLeadingOnes(); - KnownOne2.clearAllBits(); - KnownZero2.clearAllBits(); computeKnownBits(Op.getOperand(1), KnownZero2, KnownOne2, Depth+1); unsigned RHSUnknownLeadingOnes = KnownOne2.countLeadingZeros(); if (RHSUnknownLeadingOnes != BitWidth) |