[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 10:16:02 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:

ugh, we shouldn't be directly introducing S_BFE there 

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


More information about the llvm-commits mailing list