summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2014-05-14 08:00:07 +0000
committerJay Foad <jay.foad@gmail.com>2014-05-14 08:00:07 +0000
commit5fa4d1cd1abda014d687ce36b8ff90e0626429fd (patch)
tree29f0d2e8430f4cc3cf6629319fb65538b9db8cc2 /lib/CodeGen/SelectionDAG
parentb8236e532a9bc5e0c6684a0b51f808d4754272bd (diff)
downloadllvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.gz
llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.bz2
llvm-5fa4d1cd1abda014d687ce36b8ff90e0626429fd.tar.xz
Update the comments for ComputeMaskedBits, which lost its Mask parameter
in r154011. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4bf147730b..62a2317d34 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1812,10 +1812,9 @@ bool SelectionDAG::MaskedValueIsZero(SDValue Op, const APInt &Mask,
return (KnownZero & Mask) == Mask;
}
-/// ComputeMaskedBits - Determine which of the bits specified in Mask are
+/// ComputeMaskedBits - Determine which bits of Op are
/// known to be either zero or one and return them in the KnownZero/KnownOne
-/// bitsets. This code only analyzes bits in Mask, in order to short-circuit
-/// processing.
+/// bitsets.
void SelectionDAG::ComputeMaskedBits(SDValue Op, APInt &KnownZero,
APInt &KnownOne, unsigned Depth) const {
const TargetLowering *TLI = TM.getTargetLowering();