forked from OSchip/llvm-project
R600/SI: Make fitsRegClass() operands const
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> llvm-svn: 182282
This commit is contained in:
parent
f41e3f56a5
commit
b35efba4d9
|
|
@ -513,7 +513,7 @@ bool SITargetLowering::foldImm(SDValue &Operand, int32_t &Immediate,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Does "Op" fit into register class "RegClass" ?
|
/// \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 {
|
unsigned RegClass) const {
|
||||||
|
|
||||||
MachineRegisterInfo &MRI = DAG.getMachineFunction().getRegInfo();
|
MachineRegisterInfo &MRI = DAG.getMachineFunction().getRegInfo();
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,8 @@ class SITargetLowering : public AMDGPUTargetLowering {
|
||||||
|
|
||||||
bool foldImm(SDValue &Operand, int32_t &Immediate,
|
bool foldImm(SDValue &Operand, int32_t &Immediate,
|
||||||
bool &ScalarSlotUsed) const;
|
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,
|
void ensureSRegLimit(SelectionDAG &DAG, SDValue &Operand,
|
||||||
unsigned RegClass, bool &ScalarSlotUsed) const;
|
unsigned RegClass, bool &ScalarSlotUsed) const;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue