[llvm-branch-commits] [llvm] AMDGPU: Handle invariant when lowering global loads (PR #168914)
Shilei Tian via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 21 10:13:00 PST 2025
================
@@ -11944,7 +11944,7 @@ SDValue SITargetLowering::LowerLOAD(SDValue Op, SelectionDAG &DAG) const {
AS == AMDGPUAS::CONSTANT_ADDRESS_32BIT ||
(AS == AMDGPUAS::GLOBAL_ADDRESS &&
Subtarget->getScalarizeGlobalBehavior() && Load->isSimple() &&
- isMemOpHasNoClobberedMemOperand(Load))) {
+ (Load->isInvariant() || isMemOpHasNoClobberedMemOperand(Load)))) {
----------------
shiltian wrote:
and there is no test change with this?
https://github.com/llvm/llvm-project/pull/168914
More information about the llvm-branch-commits
mailing list