[llvm] [AMDGPU][SDAG] Try folding "lshr i64 + mad" to "mad_[iu]64_[iu]32" (PR #119218)

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 22:05:14 PST 2024


================
@@ -13915,6 +13948,15 @@ SDValue SITargetLowering::tryFoldToMad64_32(SDNode *N,
   SDValue MulRHS = LHS.getOperand(1);
   SDValue AddRHS = RHS;
 
+  if (MulLHS.getOpcode() == ISD::Constant ||
+      MulRHS.getOpcode() == ISD::Constant) {
----------------
vikramRH wrote:

done

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


More information about the llvm-commits mailing list