Simplify some logic in ComputeMaskedBits. And change ComputeMaskedBits

to pass the mask APInt by value, not by reference. 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-02-13 22:28:48 +00:00
parent ea06906559
commit 977a76fbb6
13 changed files with 64 additions and 56 deletions

View File

@@ -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,