diff --git a/llvm/include/llvm/Support/TypeSize.h b/llvm/include/llvm/Support/TypeSize.h --- a/llvm/include/llvm/Support/TypeSize.h +++ b/llvm/include/llvm/Support/TypeSize.h @@ -447,15 +447,7 @@ // bail out early for scalable vectors and use getFixedValue() // } operator ScalarTy() const { -#ifdef STRICT_FIXED_SIZE_VECTORS return getFixedValue(); -#else - if (isScalable()) - WithColor::warning() << "Compiler has made implicit assumption that " - "TypeSize is not scalable. This may or may not " - "lead to broken code.\n"; - return getKnownMinValue(); -#endif } // Additional operators needed to avoid ambiguous parses diff --git a/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp b/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp --- a/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp +++ b/llvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp @@ -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 NumBytes0 = MemoryLocation::getSizeOrUnknown( cast(Store0)->getMemoryVT().getStoreSize()); Optional NumBytes1 = MemoryLocation::getSizeOrUnknown(