Skip to content

Commit d5cf401

Browse files
committed
[NFC] Make AMDGPUCombinerHelper methods const
This is a follow-up to a previous commit (ee7ca0d) which eliminated several "TODO: make CombinerHelper methods const" remarks. As promised in that ealier commit, this change completes the set by also making the methods of AMDGPUCombinerHelper const so that the Helper member of AMDGPUPreLegalizerCombinerImpl can be const rather than explicitly mutable.
1 parent 4d0b60e commit d5cf401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCombinerHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ void AMDGPUCombinerHelper::applyExpandPromotedF16FMed3(MachineInstr &MI,
455455

456456
bool AMDGPUCombinerHelper::matchCombineFmulWithSelectToFldexp(
457457
MachineInstr &MI, MachineInstr &Sel,
458-
std::function<void(MachineIRBuilder &)> &MatchInfo) {
458+
std::function<void(MachineIRBuilder &)> &MatchInfo) const {
459459
assert(MI.getOpcode() == TargetOpcode::G_FMUL);
460460
assert(Sel.getOpcode() == TargetOpcode::G_SELECT);
461461
assert(MI.getOperand(2).getReg() == Sel.getOperand(0).getReg());

0 commit comments

Comments
 (0)