mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 07:31:32 +00:00
[RegBankSelect] Use const_iterator instead of iterator for repairReg.
The repairing code has no reason to change the source or destination of the registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94a69dc2a1
commit
cf4d78fc0d
@ -520,10 +520,11 @@ private:
|
||||
///
|
||||
/// \note The caller is supposed to do the rewriting of op if need be.
|
||||
/// I.e., Reg = op ... => <NewRegs> = NewOp ...
|
||||
void repairReg(
|
||||
MachineOperand &MO, const RegisterBankInfo::ValueMapping &ValMapping,
|
||||
RegBankSelect::RepairingPlacement &RepairPt,
|
||||
const iterator_range<SmallVectorImpl<unsigned>::iterator> &NewVRegs);
|
||||
void repairReg(MachineOperand &MO,
|
||||
const RegisterBankInfo::ValueMapping &ValMapping,
|
||||
RegBankSelect::RepairingPlacement &RepairPt,
|
||||
const iterator_range<SmallVectorImpl<unsigned>::const_iterator>
|
||||
&NewVRegs);
|
||||
|
||||
/// Return the cost of the instruction needed to map \p MO to \p ValMapping.
|
||||
/// The cost is free of basic block frequencies.
|
||||
|
@ -106,7 +106,7 @@ bool RegBankSelect::assignmentMatch(
|
||||
void RegBankSelect::repairReg(
|
||||
MachineOperand &MO, const RegisterBankInfo::ValueMapping &ValMapping,
|
||||
RegBankSelect::RepairingPlacement &RepairPt,
|
||||
const iterator_range<SmallVectorImpl<unsigned>::iterator> &NewVRegs) {
|
||||
const iterator_range<SmallVectorImpl<unsigned>::const_iterator> &NewVRegs) {
|
||||
assert(ValMapping.BreakDown.size() == 1 && "Not yet implemented");
|
||||
// Assume we are repairing a use and thus, the original reg will be
|
||||
// the source of the repairing.
|
||||
|
Loading…
x
Reference in New Issue
Block a user