[PATCH] D98736: [SelectionDAG] Don't pass a scalable vector to MachinePointerInfo::getWithOffset in a unit test.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 18 08:54:07 PDT 2021
craig.topper updated this revision to Diff 331576.
craig.topper added a comment.
Remove extra change. Keep PtrInfo for the first store.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98736/new/
https://reviews.llvm.org/D98736
Files:
llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp
Index: llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp
===================================================================
--- llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp
+++ llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp
@@ -135,8 +135,8 @@
TypeSize Offset1 = SubVecVT.getStoreSize();
SDValue Index0 = DAG->getMemBasePlusOffset(FIPtr, Offset0, Loc);
SDValue Index1 = DAG->getMemBasePlusOffset(FIPtr, Offset1, Loc);
- SDValue Store0 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index0,
- PtrInfo.getWithOffset(Offset0));
+ SDValue Store0 =
+ DAG->getStore(DAG->getEntryNode(), Loc, Value, Index0, PtrInfo);
SDValue Store1 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index1,
PtrInfo.getWithOffset(Offset1));
Optional<int64_t> NumBytes0 = MemoryLocation::getSizeOrUnknown(
@@ -170,9 +170,9 @@
SDValue Index0 = DAG->getMemBasePlusOffset(FIPtr, Offset0, Loc);
SDValue Index1 = DAG->getMemBasePlusOffset(FIPtr, Offset1, Loc);
SDValue Store0 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index0,
- PtrInfo.getWithOffset(Offset0));
+ MachinePointerInfo(PtrInfo.getAddrSpace()));
SDValue Store1 = DAG->getStore(DAG->getEntryNode(), Loc, Value, Index1,
- PtrInfo.getWithOffset(Offset1));
+ MachinePointerInfo(PtrInfo.getAddrSpace()));
Optional<int64_t> NumBytes0 = MemoryLocation::getSizeOrUnknown(
cast<StoreSDNode>(Store0)->getMemoryVT().getStoreSize());
Optional<int64_t> NumBytes1 = MemoryLocation::getSizeOrUnknown(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98736.331576.patch
Type: text/x-patch
Size: 1703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210318/2b5818d5/attachment.bin>
More information about the llvm-commits
mailing list