diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-24 23:00:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-24 23:00:27 +0000 |
commit | dc9b3d0bb5ed3a3f59cad61e264f0ec43c946459 (patch) | |
tree | 69a3fc84bfdda872b993c907631d295384b9f4db /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | a6a1ab3d2877d2d677d460843344c3b864171ccb (diff) | |
download | external_llvm-dc9b3d0bb5ed3a3f59cad61e264f0ec43c946459.zip external_llvm-dc9b3d0bb5ed3a3f59cad61e264f0ec43c946459.tar.gz external_llvm-dc9b3d0bb5ed3a3f59cad61e264f0ec43c946459.tar.bz2 |
Add const to CanBeFoldedBy, CheckAndMask, and CheckOrMask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 9256faa..05578fe 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -4799,7 +4799,7 @@ HazardRecognizer *SelectionDAGISel::CreateTargetHazardRecognizer() { /// actual value in the DAG on the RHS of an AND, and DesiredMaskS is the value /// specified in the .td file (e.g. 255). bool SelectionDAGISel::CheckAndMask(SDOperand LHS, ConstantSDNode *RHS, - int64_t DesiredMaskS) { + int64_t DesiredMaskS) const { uint64_t ActualMask = RHS->getValue(); uint64_t DesiredMask =DesiredMaskS & MVT::getIntVTBitMask(LHS.getValueType()); @@ -4828,7 +4828,7 @@ bool SelectionDAGISel::CheckAndMask(SDOperand LHS, ConstantSDNode *RHS, /// actual value in the DAG on the RHS of an OR, and DesiredMaskS is the value /// specified in the .td file (e.g. 255). bool SelectionDAGISel::CheckOrMask(SDOperand LHS, ConstantSDNode *RHS, - int64_t DesiredMaskS) { + int64_t DesiredMaskS) const { uint64_t ActualMask = RHS->getValue(); uint64_t DesiredMask =DesiredMaskS & MVT::getIntVTBitMask(LHS.getValueType()); |