Fold one-use variable into assert. NFCI.

Avoids a warning in Release builds.
This commit is contained in:
Benjamin Kramer 2021-02-02 10:50:48 +01:00
parent 0409eb2874
commit 679ef22f2e
1 changed files with 2 additions and 2 deletions

View File

@ -109,10 +109,10 @@ bool AMDGPUPreLegalizerCombinerHelper::matchClampI64ToI16(
// v_med3_i32 v0, Clamp_Min, v0, Clamp_Max
void AMDGPUPreLegalizerCombinerHelper::applyClampI64ToI16(
MachineInstr &MI, const ClampI64ToI16MatchInfo &MatchInfo) {
MachineRegisterInfo &MRI = MI.getParent()->getParent()->getRegInfo();
Register Src = MatchInfo.Origin;
assert(MRI.getType(Src) == LLT::scalar(64));
assert(MI.getParent()->getParent()->getRegInfo().getType(Src) ==
LLT::scalar(64));
const LLT S32 = LLT::scalar(32);
B.setMBB(*MI.getParent());