[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:19 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);
+    Builder.buildCopy(FromReg, ToReg);
----------------
arsenm wrote:

Not sure where the register class reference came from 

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


More information about the llvm-commits mailing list