SuccessChanges

Summary

  1. [MachineVerifier]  Improve verification of live-in lists. (details)
  2. [SystemZ]  Use LivePhysRegs instead of isCCLiveOut() in (details)
  3. [test] Use system locale for mri-utf8.test (details)
  4. [Diagnostics] Improve some error messages related to bad use of (details)
  5. AliasSetTracker - fix uninitialized variable warnings. NFCI. (details)
  6. [X86] Convert ShrinkMode to scoped enum class. NFCI. (details)
Commit b7b170c9b46ab4c0a10ecf1d9d5832e70ca992d5 by paulsson
[MachineVerifier]  Improve verification of live-in lists.
MachineVerifier::visitMachineFunctionAfter() is extended to check the
live-through case for live-in lists. This is only done for registers
without aliases and that are neither allocatable or reserved, such as
the SystemZ::CC register.
The MachineVerifier earlier only catched the case of a live-in use
without an entry in the live-in list (as "using an undefined physical
register").
A comment in LivePhysRegs.h has been added stating a guarantee that
addLiveOuts() can be trusted for a full register both before and after
register allocation.
Review: Quentin Colombet https://reviews.llvm.org/D68267
The file was addedllvm/test/MachineVerifier/live-ins-03.mir
The file was modifiedllvm/include/llvm/CodeGen/LivePhysRegs.h
The file was modifiedllvm/lib/CodeGen/MachineVerifier.cpp
The file was addedllvm/test/MachineVerifier/live-ins-01.mir
The file was addedllvm/test/MachineVerifier/live-ins-02.mir
Commit bf6744dfb244dbd2a4abe635f57e45218292743f by paulsson
[SystemZ]  Use LivePhysRegs instead of isCCLiveOut() in
SystemZElimCompare.cpp
Review: Ulrich Weigand https://reviews.llvm.org/D68267
The file was modifiedllvm/lib/Target/SystemZ/SystemZElimCompare.cpp
Commit 0bab0538d8cc0de242ed2936a4766930cfc934d2 by thomasp
[test] Use system locale for mri-utf8.test
Summary: llvm-ar's mri-utf8.test test relies on the en_US.UTF-8 locale
to be installed for its last RUN line to work. If not installed, the
unicode string gets encoded (interpreted) as ascii which fails since the
most significant byte is non zero. This commit changes the test to only
rely on the system being able to encode the pound sign in its default
encoding (e.g. UTF-16 for Microsoft Windows) by always opening the file
via input/output redirection. This avoids forcing a given locale to be
present and supported. A Byte Order Mark is also added to help
recognizing the encoding of the file and its endianness. Finally the
XFAIL on system-darwin is removed since the test actually passes fine on
Mac OS X and XFAIL was only added because it failed before.
Reviewers: gbreynoo, MaskRay, rupprecht, JamesNagurne, jfb
Subscribers: dexonsmith, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68472
The file was addedllvm/test/tools/llvm-ar/mri-nonascii.test
The file was removedllvm/test/tools/llvm-ar/mri-utf8.test
Commit 55507110b988c27cfb9ff4c2231fa38171692545 by Dávid Bolvanský
[Diagnostics] Improve some error messages related to bad use of
dynamic_cast
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/lib/Sema/SemaCast.cpp
The file was modifiedclang/test/SemaCXX/dynamic-cast.cpp
The file was modifiedclang/test/SemaTemplate/instantiate-cast.cpp
Commit 1abb2c1a39fb20e12210472fda42a0c942f83be8 by llvm-dev
AliasSetTracker - fix uninitialized variable warnings. NFCI.
The file was modifiedllvm/include/llvm/Analysis/AliasSetTracker.h
Commit 9ad9d1531b96242bedce3e7f101689bc46322fd2 by llvm-dev
[X86] Convert ShrinkMode to scoped enum class. NFCI.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp