[llvm] [AMDGPU] Enable CSE in the GlobalISel post-legalizer combiner (PR #217258)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 03:49:45 PDT 2026


================
@@ -8288,14 +8286,20 @@ bool AMDGPULegalizerInfo::legalizeIntrinsic(LegalizerHelper &Helper,
 
       MachineBasicBlock *CondBrTarget = BrCond->getOperand(1).getMBB();
       Register Reg = MI.getOperand(2).getReg();
+      Register NewReg = MRI.createVirtualRegister(
----------------
arsenm wrote:

Same 

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


More information about the llvm-commits mailing list