[RISCV][GISel] Pass APInt by const reference. NFC
This commit is contained in:
parent
ab75180501
commit
a9d39ce5d2
@ -670,7 +670,7 @@ bool RISCVLegalizerInfo::legalizeVAStart(MachineInstr &MI,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RISCVLegalizerInfo::shouldBeInConstantPool(APInt APImm,
|
||||
bool RISCVLegalizerInfo::shouldBeInConstantPool(const APInt &APImm,
|
||||
bool ShouldOptForSize) const {
|
||||
assert(APImm.getBitWidth() == 32 || APImm.getBitWidth() == 64);
|
||||
int64_t Imm = APImm.getSExtValue();
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
MachineInstr &MI) const override;
|
||||
|
||||
private:
|
||||
bool shouldBeInConstantPool(APInt APImm, bool ShouldOptForSize) const;
|
||||
bool shouldBeInConstantPool(const APInt &APImm, bool ShouldOptForSize) const;
|
||||
bool legalizeShlAshrLshr(MachineInstr &MI, MachineIRBuilder &MIRBuilder,
|
||||
GISelChangeObserver &Observer) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user