forked from OSchip/llvm-project
[SelectionDAG] Const-correct the DemandedMask argument to one of the overloads of SimplifyDemandedBits. NFC
llvm-svn: 315641
This commit is contained in:
parent
5323550e9a
commit
0e8211ea57
|
@ -2654,7 +2654,7 @@ public:
|
|||
bool AssumeSingleUse = false) const;
|
||||
|
||||
/// Helper wrapper around SimplifyDemandedBits
|
||||
bool SimplifyDemandedBits(SDValue Op, APInt &DemandedMask,
|
||||
bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
|
||||
DAGCombinerInfo &DCI) const;
|
||||
|
||||
/// Determine which of the bits specified in Mask are known to be either zero
|
||||
|
|
|
@ -479,7 +479,7 @@ TargetLowering::SimplifyDemandedBits(SDNode *User, unsigned OpIdx,
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TargetLowering::SimplifyDemandedBits(SDValue Op, APInt &DemandedMask,
|
||||
bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
|
||||
DAGCombinerInfo &DCI) const {
|
||||
|
||||
SelectionDAG &DAG = DCI.DAG;
|
||||
|
|
Loading…
Reference in New Issue