[llvm] r315641 - [SelectionDAG] Const-correct the DemandedMask argument to one of the overloads of SimplifyDemandedBits. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 16:46:05 PDT 2017
Author: ctopper
Date: Thu Oct 12 16:46:05 2017
New Revision: 315641
URL: http://llvm.org/viewvc/llvm-project?rev=315641&view=rev
Log:
[SelectionDAG] Const-correct the DemandedMask argument to one of the overloads of SimplifyDemandedBits. NFC
Modified:
llvm/trunk/include/llvm/Target/TargetLowering.h
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=315641&r1=315640&r2=315641&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Thu Oct 12 16:46:05 2017
@@ -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
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=315641&r1=315640&r2=315641&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Thu Oct 12 16:46:05 2017
@@ -479,7 +479,7 @@ TargetLowering::SimplifyDemandedBits(SDN
return true;
}
-bool TargetLowering::SimplifyDemandedBits(SDValue Op, APInt &DemandedMask,
+bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
DAGCombinerInfo &DCI) const {
SelectionDAG &DAG = DCI.DAG;
More information about the llvm-commits
mailing list