summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
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
commite48d9e8efef3607506b519f7fc28819130dbde24 (patch)
treedac942567f3b0f59a79dab01ab2f6d6168a33d51 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent2976f8b011a0845f1b0865150036cf3f48a61cbf (diff)
downloadbcm5719-llvm-e48d9e8efef3607506b519f7fc28819130dbde24.tar.gz
bcm5719-llvm-e48d9e8efef3607506b519f7fc28819130dbde24.zip
Update the comments for ComputeMaskedBits, which lost its Mask parameter
in r154011. llvm-svn: 208757
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4bf147730bf..62a2317d34f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud