mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[SelectionDAG] Don't pass a scalable vector to MachinePointerInfo::getWithOffset in a unit test.
Suppresses an implicit TypeSize to uint64_t conversion warning. We might be able to just not offset it since we're writing to a Fixed stack object, but I wasn't sure so I just did what DAGTypeLegalizer::IncrementPointer does. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D98736
This commit is contained in:
parent
ed003a9a79
commit
720ba00a2a
@ -165,14 +165,12 @@ TEST_F(SelectionDAGAddressAnalysisTest, unknownSizeFrameObjects) {
|
||||
int FI = cast<FrameIndexSDNode>(FIPtr.getNode())->getIndex();
|
||||
MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack(*MF, FI);
|
||||
SDValue Value = DAG->getConstant(0, Loc, SubVecVT);
|
||||
TypeSize Offset0 = TypeSize::Fixed(0);
|
||||
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, FIPtr, PtrInfo);
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user