summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-13 22:28:48 +0000
committerDan Gohman <gohman@apple.com>2008-02-13 22:28:48 +0000
commite1d9ee66ed8f4e426442fe18bd8c0bdbef85f331 (patch)
tree74f8afcbd6f0a96b34d570d762775d8c0e4462e6 /llvm/include
parent0ecb76d8204702c85c0471520696bf72b5ae757f (diff)
downloadbcm5719-llvm-e1d9ee66ed8f4e426442fe18bd8c0bdbef85f331.tar.gz
bcm5719-llvm-e1d9ee66ed8f4e426442fe18bd8c0bdbef85f331.zip
Simplify some logic in ComputeMaskedBits. And change ComputeMaskedBits
to pass the mask APInt by value, not by reference. llvm-svn: 47096
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAG.h2
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index 560e0fca132..22487dd5c37 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -556,7 +556,7 @@ public:
/// bitsets. This code only analyzes bits in Mask, in order to short-circuit
/// processing. Targets can implement the computeMaskedBitsForTargetNode
/// method in the TargetLowering class to allow target nodes to be understood.
- void ComputeMaskedBits(SDOperand Op, APInt Mask, APInt &KnownZero,
+ void ComputeMaskedBits(SDOperand Op, const APInt &Mask, APInt &KnownZero,
APInt &KnownOne, unsigned Depth = 0) const;
/// ComputeMaskedBits - This is a wrapper around the APInt-using
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index d81dacf41f7..ef8a4474097 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/include/llvm/Target/TargetLowering.h
@@ -627,7 +627,7 @@ public:
/// Mask are known to be either zero or one and return them in the
/// KnownZero/KnownOne bitsets.
virtual void computeMaskedBitsForTargetNode(const SDOperand Op,
- APInt Mask,
+ const APInt &Mask,
APInt &KnownZero,
APInt &KnownOne,
const SelectionDAG &DAG,
OpenPOWER on IntegriCloud