R600/SI: Make fitsRegClass() operands const
authorTom Stellard <thomas.stellard@amd.com>
Mon, 20 May 2013 15:02:01 +0000 (15:02 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 20 May 2013 15:02:01 +0000 (15:02 +0000)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182282 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIISelLowering.h

index 237999f8c56257a872d6156b7efc34e10b5cdabc..a077a95cdbb2d863ea3b927b01ba93a8a2d7f4a8 100644 (file)
@@ -513,7 +513,7 @@ bool SITargetLowering::foldImm(SDValue &Operand, int32_t &Immediate,
 }
 
 /// \brief Does "Op" fit into register class "RegClass" ?
-bool SITargetLowering::fitsRegClass(SelectionDAG &DAG, SDValue &Op,
+bool SITargetLowering::fitsRegClass(SelectionDAG &DAG, const SDValue &Op,
                                     unsigned RegClass) const {
 
   MachineRegisterInfo &MRI = DAG.getMachineFunction().getRegInfo();
index af0625f4b58593218a4ad028428b3d78b25f84b6..62dfeda6018e3a81926c736ae83415d0571868cf 100644 (file)
@@ -30,7 +30,8 @@ class SITargetLowering : public AMDGPUTargetLowering {
 
   bool foldImm(SDValue &Operand, int32_t &Immediate,
                bool &ScalarSlotUsed) const;
-  bool fitsRegClass(SelectionDAG &DAG, SDValue &Op, unsigned RegClass) const;
+  bool fitsRegClass(SelectionDAG &DAG, const SDValue &Op,
+                    unsigned RegClass) const;
   void ensureSRegLimit(SelectionDAG &DAG, SDValue &Operand,
                        unsigned RegClass, bool &ScalarSlotUsed) const;