[llvm-branch-commits] [llvm] [AMDGPU] Fold 24 bit multiply with zero low bits (PR #224537)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Sep 18 11:50:32 PDT 2026
================
@@ -4087,6 +4087,11 @@ static SDValue simplifyMul24(SDNode *Node24,
APInt Demanded = APInt::getLowBitsSet(LHS.getValueSizeInBits(), 24);
+ // The 24 bit multiplies only read bits [23:0] of each source.
+ if (DAG.MaskedValueIsZero(LHS, Demanded) ||
----------------
arsenm wrote:
I'm not claiming this doesn't do anything, just that it's too expensive for no practical impact
https://github.com/llvm/llvm-project/pull/224537
More information about the llvm-branch-commits
mailing list