[llvm] [X86] combineConstantPoolLoads - correctly merge constant pool loads by pointer and chain (PR #139575)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Sun May 18 18:08:20 PDT 2025
================
@@ -52880,7 +52880,7 @@ static SDValue combineConstantPoolLoads(SDNode *N, const SDLoc &dl,
(User->getOpcode() == X86ISD::SUBV_BROADCAST_LOAD ||
User->getOpcode() == X86ISD::VBROADCAST_LOAD ||
ISD::isNormalLoad(User)) &&
- UserLd->getChain() == Chain && !User->hasAnyUseOfValue(1) &&
+ UserLd->getChain() == Chain && User->hasAnyUseOfValue(0) &&
----------------
phoebewang wrote:
Is it necessary? Do we have a chance to create a load without use the value?
https://github.com/llvm/llvm-project/pull/139575
More information about the llvm-commits
mailing list