[llvm] AMDGPU/GlobalISel: Run redundant_and combine in RegBankCombiner (PR #112353)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 09:12:12 PDT 2024


================
@@ -178,7 +178,7 @@ void CombinerHelper::replaceRegWith(MachineRegisterInfo &MRI, Register FromReg,
   if (MRI.constrainRegAttrs(ToReg, FromReg))
     MRI.replaceRegWith(FromReg, ToReg);
   else
-    Builder.buildCopy(ToReg, FromReg);
----------------
arsenm wrote:

Should add a mir test with the funny pre-assigned class situation 

https://github.com/llvm/llvm-project/pull/112353


More information about the llvm-commits mailing list