aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorjofrn <jofernau@amd.com>2025-01-31 13:12:56 -0500
committerjofernau_amdeng <joe.fernau@amd.com>2025-05-27 13:34:31 -0400
commit7ba3e69a759f59bf746cb14640ea8ea426fa09fd (patch)
tree61708f8abb299cfc69a0477d225431e586acf0fa /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentf91634795e4dbfd6e081f0b096b872411051ff0f (diff)
downloadllvm-users/jofrn/spr/main/b83937a8.zip
llvm-users/jofrn/spr/main/b83937a8.tar.gz
llvm-users/jofrn/spr/main/b83937a8.tar.bz2
[SelectionDAG][X86] Remove unused elements from atomic vector.users/jofrn/spr/main/b83937a8
After splitting, all elements are created. The two components must be found by looking at the upper and lower half of the value. This change extends EltsFromConsecutiveLoads to understand AtomicSDNode so that unused elements can be removed. commit-id:b83937a8
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index e6a7d09..1c1445f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -12236,7 +12236,7 @@ SDValue SelectionDAG::makeEquivalentMemoryOrdering(SDValue OldChain,
return TokenFactor;
}
-SDValue SelectionDAG::makeEquivalentMemoryOrdering(LoadSDNode *OldLoad,
+SDValue SelectionDAG::makeEquivalentMemoryOrdering(MemSDNode *OldLoad,
SDValue NewMemOp) {
assert(isa<MemSDNode>(NewMemOp.getNode()) && "Expected a memop node");
SDValue OldChain = SDValue(OldLoad, 1);