FailedChanges

Summary

  1. [llvm-dwarfdump] Fix misleading scope byte coverage statistics (details)
  2. [FileCheck][docs] Fix word errors (details)
  3. [llvm-readelf/obj] - Change the return type of the `createDRI(...)` to `Expected<>` (details)
  4. Revert "[CMake] Fix ncurses/zlib in LLVM_SYSTEM_LIBS for Windows GNU" (details)
  5. Revert "[InstCombine] improve demanded element analysis for vector insert-of-extract" (details)
  6. [NFC][InstCombine] Tests for PHI-of-extractvalues (details)
  7. [llvm-readobj] - Print "Unknown" when a program header is unknown. (details)
  8. [UpdatesTestChecks] Fix typo in common.py (details)
  9. [NFC][ARM] arith code size cost tests (details)
  10. [SVE] Lower scalable vector ISD::FNEG operations. (details)
  11. [Attributor][NFC] Clang format (details)
  12. [NFC][SimplifyCFG] Add some more tests for Arm. (details)
Commit 3ff4d75c9cbffb12c5c690c389e3977ea6811042 by orlando.hyams
[llvm-dwarfdump] Fix misleading scope byte coverage statistics

Fixes PR46575.

Bump statistics version to 6.

Without this patch, for a variable described with a location list the stat
'sum_all_variables(#bytes in parent scope covered by DW_AT_location)' is
calculated by summing all bytes covered by the location ranges in the list and
capping the result to the number of bytes in the parent scope. With the patch,
only bytes which overlap with the parent DIE scope address ranges contribute to
the stat. A new stat 'sum_all_variables(#bytes in any scope covered by
DW_AT_location)' has been added which displays the total bytes covered when
ignoring scopes.
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test
The file was modifiedllvm/tools/llvm-dwarfdump/Statistics.cpp
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/statistics.ll
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test
The file was addedllvm/test/tools/llvm-dwarfdump/X86/stats-scope-bytes-covered.yaml
Commit 70b39506a1a68f16e4d59f998c6a099f98363964 by thomasp
[FileCheck][docs] Fix word errors

ouput -> output

Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D86504
The file was modifiedllvm/docs/CommandGuide/FileCheck.rst
Commit 275bed899e96e384e90ad5e9874171aa86412f65 by grimar
[llvm-readelf/obj] - Change the return type of the `createDRI(...)` to `Expected<>`

This allows to get rid of "Invalid data was encountered while parsing the file"
error reported in cases when sh_size/sh_offset of sections are broken.

Differential revision: https://reviews.llvm.org/D86451
The file was modifiedllvm/test/tools/llvm-readobj/ELF/malformed-pt-dynamic.test
The file was modifiedllvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
Commit 6da4f1199e7c3129f6e2ef7a24a2c75e386be32d by hans
Revert "[CMake] Fix ncurses/zlib in LLVM_SYSTEM_LIBS for Windows GNU"

It broke Chromium's llvm build:

CMake Error at lib/Support/CMakeLists.txt:13 (string):
   string sub-command REGEX, mode REPLACE: regex "^()" matched an empty
   string.
Call Stack (most recent call first):
   lib/Support/CMakeLists.txt:223 (get_system_libname)

This reverts commit 2b3807d822c50d361ae67184b6de5a41bd7b1bba /  https://reviews.llvm.org/D86434
The file was modifiedllvm/lib/Support/CMakeLists.txt
Commit c6fb72de4f55f0f6b8eb6686284d52ed8c5a1ac9 by benny.kra
Revert "[InstCombine] improve demanded element analysis for vector insert-of-extract"

This reverts commit 557b890ff4f4dd5fa979c232df5b31cf3fef04c1. Causing
miscompiles, test case is on llvm-commits.
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/getelementptr.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/operandorder.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
The file was modifiedllvm/test/Transforms/InstCombine/vec_demanded_elts.ll
Commit 4d5ca22b8adfb6643466e4e9f48ba14bb48938bc by lebedev.ri
[NFC][InstCombine] Tests for PHI-of-extractvalues

Much like with it's sibling fold HI-of-insertvalues,
it appears to be much more worthwhile than it would seem.
The file was addedllvm/test/Transforms/InstCombine/phi-of-extractvalues.ll
Commit 41726f8d5b24bc449b48d1d9e09523ee266cc5e4 by grimar
[llvm-readobj] - Print "Unknown" when a program header is unknown.

Currently, when a program header type is unknown, we dont print anything:

```
ProgramHeader {
  Type:  (0x60000000)
```

With this patch the output will be:

```
ProgramHeader {
  Type: Unknown (0x60000000)
```

It was discussed in D85526 and consistent with what we print for
'--sections' already, e.g.:

```
Section {
  Name: .sec
  Type: Unknown (0x7FFFFFFF)
}
```

Differential revision: https://reviews.llvm.org/D86213
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/test/tools/llvm-readobj/ELF/program-headers.test
The file was modifiedlld/test/ELF/linkerscript/non-alloc-segment.s
The file was modifiedlld/test/ELF/linkerscript/phdrs.s
Commit af6140fe8ae8f59c6149e7cc12fe02679d8dcca3 by sam.parker
[UpdatesTestChecks] Fix typo in common.py

global_vars_see_dict -> global_vars_seen_dict
The file was modifiedllvm/utils/UpdateTestChecks/common.py
Commit da4ada116ea4e2ca710ca993a3be7f646030d7ae by sam.parker
[NFC][ARM] arith code size cost tests

Add a run to measure the code size cost of arithmetic instructions
and add a function for i1 types.
The file was modifiedllvm/test/Analysis/CostModel/ARM/arith.ll
Commit 73ac3c0ede4ca08b72618620f92f1efcb76f2c89 by paul.walker
[SVE] Lower scalable vector ISD::FNEG operations.

Also updates isConstOrConstSplatFP to allow the mul(A,-1) -> neg(A)
transformation when -1 is expressed as an ISD::SPLAT_VECTOR.

Differential Revision: https://reviews.llvm.org/D86415
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
The file was modifiedllvm/test/CodeGen/AArch64/sve-fp.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/lib/Target/AArch64/SVEInstrFormats.td
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Commit 05390440a225c75358da84a1f2c3e8b8ddecd238 by okuraofvegetable
[Attributor][NFC] Clang format
The file was modifiedllvm/lib/Transforms/IPO/AttributorAttributes.cpp
Commit d4225b8f17d817a544b50d5e54737b059c660110 by sam.parker
[NFC][SimplifyCFG] Add some more tests for Arm.
The file was modifiedllvm/test/Transforms/SimplifyCFG/ARM/branch-fold-threshold.ll