[llvm] [AMDGPU][SDAG] Try folding "lshr i64 + mad" to "mad_[iu]64_[iu]32" (PR #119218)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 18:28:12 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) {
----------------
arsenm wrote:
Prefer `isa<ConstantSDNode>`
https://github.com/llvm/llvm-project/pull/119218
More information about the llvm-commits
mailing list