summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
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/lib/Target/Sparc/SparcISelDAGToDAG.cpp
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/lib/Target/Sparc/SparcISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index 81e15397c7f..29fe6a41602 100644
--- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -110,7 +110,7 @@ namespace {
/// in 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,
@@ -270,7 +270,7 @@ const char *SparcTargetLowering::getTargetNodeName(unsigned Opcode) const {
/// be zero. Op is expected to be a target specific node. Used by DAG
/// combiner.
void SparcTargetLowering::computeMaskedBitsForTargetNode(const SDOperand Op,
- APInt Mask,
+ const APInt &Mask,
APInt &KnownZero,
APInt &KnownOne,
const SelectionDAG &DAG,
OpenPOWER on IntegriCloud