SuccessChanges

Summary

  1. [AMDGPU] Fix llc pipeline lit test for bots enabling expensive checks (details)
  2. [MIPS][MSA] Regenerate bitwise tests. NFCI. (details)
  3. [MIPS][MSA] Regenerate i5-b tests. NFCI. (details)
  4. [MIPS][MSA] Regenerate immediates tests. NFCI. (details)
  5. [InstCombine] improve readability; NFC (details)
  6. [GlobalISel] Fix buildZExtInReg creating new register. (details)
  7. [SelectionDAG][Mips][PowerPC][RISCV][WebAssembly] Teach computeKnownBits/ComputeNumSignBits about atomics (details)
  8. [RISCV][NFC] Fix up pseudoinstruction name in comment (details)
  9. [libc] Normalize LIBC_TARGET_MACHINE (details)
  10. Revert "[SelectionDAG][Mips][PowerPC][RISCV][WebAssembly] Teach computeKnownBits/ComputeNumSignBits about atomics" (details)
  11. [docs] Update the llvm/example section (details)
  12. Added a faster method to clone llvm project [DOCS] (details)
  13. [clang][Driver] Add -fintegrate-as to debug-pass-structure test (details)
  14. [mlir][Affine][Vector] Support vectorizing reduction loops (details)
  15. [AMDGPU] Pre-commit 2 new saddr load tests. NFC. (details)
  16. [clang] remove an incremental build workaround (details)
Commit 83646f60a8a499473aad0fa591195065fca9d7b2 by baptiste.saleil
[AMDGPU] Fix llc pipeline lit test for bots enabling expensive checks
The file was modifiedllvm/test/CodeGen/AMDGPU/llc-pipeline.ll
Commit c673a95cb46aacc9631dbc7d1a07851d951f2e64 by llvm-dev
[MIPS][MSA] Regenerate bitwise tests. NFCI.

Simplifies an upcoming patch diff
The file was modifiedllvm/test/CodeGen/Mips/msa/bitwise.ll
Commit 679e30dc3f50b5fc6adc3a67dc2a4d1b23e8656e by llvm-dev
[MIPS][MSA] Regenerate i5-b tests. NFCI.

Simplifies an upcoming patch diff
The file was modifiedllvm/test/CodeGen/Mips/msa/i5-b.ll
Commit 0f97afe32044ab5b7e4d20090952143d8a5547e5 by llvm-dev
[MIPS][MSA] Regenerate immediates tests. NFCI.

Simplifies an upcoming patch diff
The file was modifiedllvm/test/CodeGen/Mips/msa/immediates.ll
Commit 00341978745d93e22560ae394a57e80a3fd29bf7 by spatel
[InstCombine] improve readability; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
Commit a3d273c9ff4c789aec0dc743fa2dc846b5987312 by Vang.Thao
[GlobalISel] Fix buildZExtInReg creating new register.

Fix a bug where buildZExtInReg will create and use a new register instead of using the register from parameter DstOp Res.

Reviewed By: arsenm, foad

Differential Revision: https://reviews.llvm.org/D101871
The file was modifiedllvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
Commit 6e876f9dedf00b24a96b8781e3b39d5282c43e91 by jrtc27
[SelectionDAG][Mips][PowerPC][RISCV][WebAssembly] Teach computeKnownBits/ComputeNumSignBits about atomics

Unlike normal loads these don't have an extension field, but we know
from TargetLowering whether these are sign-extending or zero-extending,
and so can optimise away unnecessary extensions.

This was noticed on RISC-V, where sign extensions in the calling
convention would result in unnecessary explicit extension instructions,
but this also fixes some Mips inefficiencies. PowerPC sees churn in the
tests as all the zero extensions are only for promoting 32-bit to
64-bit, but these zero extensions are still not optimised away as they
should be, likely due to i32 being a legal type.

This also simplifies the WebAssembly code somewhat, which currently
works around the lack of target-independent combines with some ugly
patterns that break once they're optimised away.

Reviewed By: RKSimon, atanasyan

Differential Revision: https://reviews.llvm.org/D101342
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i32-ldst.ll
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i16-ldst.ll
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i8-ldst.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
The file was modifiedllvm/test/CodeGen/Mips/atomic.ll
The file was modifiedllvm/test/CodeGen/RISCV/atomic-signext.ll
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i64-ldst.ll
Commit efc31be7f8e8487c774dd9052980b67f0d5e70e2 by fraser
[RISCV][NFC] Fix up pseudoinstruction name in comment
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
Commit 7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4 by gchatelet
[libc] Normalize LIBC_TARGET_MACHINE

Current implementation defines LIBC_TARGET_MACHINE with the use of CMAKE_SYSTEM_PROCESSOR.
Unfortunately CMAKE_SYSTEM_PROCESSOR is OS dependent and can produce different results.
An evidence of this is the various matchers used to detect whether the architecture is x86.

This patch normalizes LIBC_TARGET_MACHINE and renames it LIBC_TARGET_ARCHITECTURE.
I've added many architectures but we may want to limit ourselves to x86 and ARM.

Differential Revision: https://reviews.llvm.org/D101524
The file was modifiedlibc/test/config/linux/CMakeLists.txt
The file was addedlibc/src/string/x86_64/memcpy.cpp
The file was modifiedlibc/utils/FPUtil/CMakeLists.txt
The file was modifiedlibc/src/math/CMakeLists.txt
The file was modifiedlibc/src/threads/linux/CMakeLists.txt
The file was removedlibc/src/string/x86/CMakeLists.txt
The file was removedlibc/src/string/x86/memcpy.cpp
The file was modifiedlibc/CMakeLists.txt
The file was modifiedlibc/config/linux/CMakeLists.txt
The file was modifiedlibc/src/string/CMakeLists.txt
The file was modifiedlibc/loader/linux/CMakeLists.txt
The file was addedlibc/src/string/x86_64/CMakeLists.txt
The file was modifiedlibc/test/utils/FPUtil/CMakeLists.txt
The file was addedlibc/cmake/modules/LLVMLibCArchitectures.cmake
The file was modifiedlibc/test/src/math/CMakeLists.txt
The file was modifiedlibc/src/string/aarch64/CMakeLists.txt
The file was modifiedlibc/test/loader/linux/CMakeLists.txt
The file was modifiedlibc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
Commit 897d7bceb90f1ef4807c0f698eaff3c10b471cb9 by jrtc27
Revert "[SelectionDAG][Mips][PowerPC][RISCV][WebAssembly] Teach computeKnownBits/ComputeNumSignBits about atomics"

This seems to have broken sanitizers, giving lots of

  Assertion `NumBits <= MAX_INT_BITS && "bitwidth too large"' failed.

failures across multiple targets (currently X86 and PowerPC). Reverting
until I have a chance to reproduce and debug.

This reverts commit 6e876f9dedf00b24a96b8781e3b39d5282c43e91.
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i64-ldst.ll
The file was modifiedllvm/test/CodeGen/Mips/atomic.ll
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i32-ldst.ll
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i8-ldst.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/test/CodeGen/RISCV/atomic-signext.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-i16-ldst.ll
Commit 0b9447157b01ac18bb9f4d865920027cbd7df840 by shivam98.tkg
[docs] Update the llvm/example section

Added details about the llvm/example section.

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D101284
The file was modifiedllvm/docs/GettingStarted.rst
Commit 67ee2f870d3b06a5684251272eae36d6e0f519b0 by shivam98.tkg
Added a faster method to clone llvm project [DOCS]

Reviewed By: xgupta, amccarth

Differential Revision: https://reviews.llvm.org/D101433
The file was modifiedclang/www/get_started.html
Commit 20d0aca43073f18f70b1c5a665631dee1be1598d by Jinsong Ji
[clang][Driver] Add -fintegrate-as to debug-pass-structure test

CGProfilePass is not always on, it will be disabled when using
non-intergrated assemblers.

  // Only enable CGProfilePass when using integrated assembler, since
  // non-integrated assemblers don't recognize .cgprofile section.
  PMBuilder.CallGraphProfile = !CodeGenOpts.DisableIntegratedAS;

Add -fintegrate-as to make sure the output don't rely on the platform default.

Reviewed By: evgeny777

Differential Revision: https://reviews.llvm.org/D101918
The file was modifiedclang/test/Driver/debug-pass-structure.c
Commit d80b04ab0015b218b613f8fe59506d45739817b8 by sergei.grechanik
[mlir][Affine][Vector] Support vectorizing reduction loops

This patch adds support for vectorizing loops with 'iter_args'
implementing known reductions along the vector dimension. Comparing to
the non-vector-dimension case, two additional things are done during
vectorization of such loops:
- The resulting vector returned from the loop is reduced to a scalar
  using `vector.reduce`.
- In some cases a mask is applied to the vector yielded at the end of
  the loop to prevent garbage values from being written to the
  accumulator.

Vectorization of reduction loops is disabled by default. To enable it, a
map from loops to array of reduction descriptors should be explicitly passed to
`vectorizeAffineLoops`, or `vectorize-reductions=true` should be passed
to the SuperVectorize pass.

Current limitations:
- Loops with a non-unit step size are not supported.
- n-D vectorization with n > 1 is not supported.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D100694
The file was modifiedmlir/test/Dialect/Affine/SuperVectorize/vectorize_1d.mlir
The file was modifiedmlir/lib/Analysis/AffineAnalysis.cpp
The file was modifiedmlir/include/mlir/Dialect/Vector/VectorOps.h
The file was modifiedmlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
The file was modifiedmlir/include/mlir/Dialect/Affine/Utils.h
The file was addedmlir/test/Dialect/Affine/SuperVectorize/vectorize_reduction.mlir
The file was addedmlir/test/Dialect/Affine/SuperVectorize/vectorize_reduction_2d.mlir
The file was modifiedmlir/include/mlir/Dialect/Affine/Passes.td
The file was modifiedmlir/include/mlir/Analysis/AffineAnalysis.h
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
The file was modifiedmlir/lib/Dialect/Vector/VectorOps.cpp
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.h
Commit 4c178d809b1df3216de251d5345b8ecc9cc3990e by Stanislav.Mekhanoshin
[AMDGPU] Pre-commit 2 new saddr load tests. NFC.
The file was modifiedllvm/test/CodeGen/AMDGPU/global-saddr-load.ll
Commit f16afcd9b5ce3054aac2b08b3a20472c07b6773a by thakis
[clang] remove an incremental build workaround

This cleaned up an oversight over a year ago. Should no longer be needed.
The file was modifiedclang/test/CoverageMapping/coroutine.cpp