Changes

Summary

  1. [openmp] Fix 51647, corrupt bitcode on amdgpu (details)
  2. Revert "[libc] Some clean work with memmove." (details)
  3. [MLIR]  Mark test case XFAIL on SystemZ for now. (details)
  4. [SelectionDAG][NFC] Fix typo in VerifyDAGDiverence() function name (details)
  5. [APInt] Add APIntOps::ScaleBitMask helper (details)
  6. [mlir][emitc] Print signed integers properly (details)
  7. [Utils] Use make_early_inc_range (NFC) (details)
  8. [mlir][Linalg] Insert static buffers as high as possible during ComprehensiveBufferization. (details)
  9. [RegScavenger][NFC] Refer to the already initialized local variable for spill slot index (details)
  10. [gn build] Fix typos in config visibility lists (details)
  11. Revert "[IndVars] Break backedge and replace PHIs if loop exits on 1st iteration" (details)
  12. Revert "[IndVars] Replace PHIs if loop exits on 1st iteration" (details)
  13. Revert "[openmp] Fix 51647, corrupt bitcode on amdgpu" (details)
  14. [openmp] Apply code change from D109500 (details)
  15. [openmp] Apply test change from D109500 (details)
Commit d5c049a3f68791490e8c87d9974e9831ede0ada0 by jonathanchesterfield
[openmp] Fix 51647, corrupt bitcode on amdgpu

Patch by @dpalermo

The corrupt bitcode reported in https://bugs.llvm.org/show_bug.cgi?id=51647 seems to be a result of a later pass changing the workfn variable to addrspace(5) (thread private, on the stack). That seems reasonable for an alloca without an address space so it's an open question why that can crash the bitcode reader.

This change puts it in the thread private address space to begin with which means whatever misfired further down the pipeline does not break it. That matches the codegen from clang where stack variables are always annotated (5) and then addrspace cast prior to following use.

This therefore patches around whatever unsuccessfully moved the alloca variable to addrspace(5). That solves the problem of openmp opt producing code that crashes the bitcode reader. It should be possible to create a minimal repro for the underlying bug based on some handwritten IR that uses an alloca in a generic address space.

Reviewed By: ronlieb, jdoerfert, dpalermo-phab

Differential Revision: https://reviews.llvm.org/D109500
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedllvm/test/Transforms/OpenMP/spmdization.ll
The file was modifiedllvm/test/Transforms/OpenMP/custom_state_machines.ll
Commit cc84ce91293bdb658f658696ac9ccaa7cdb239b8 by gchatelet
Revert "[libc] Some clean work with memmove."

This reverts commit b659b789c03ac339e28d7b91406b67bb887a426d.
The file was modifiedlibc/test/src/string/memmove_test.cpp
The file was modifiedlibc/src/string/CMakeLists.txt
The file was modifiedlibc/src/string/memmove.cpp
Commit 5f781ddffc0c93629b1a4998bf9f92cea7d6176a by paulsson
[MLIR]  Mark test case XFAIL on SystemZ for now.

mlir-cpu-runner/math_polynomial_approx.mlir

This test case is currently failing on SystemZ, but it does not appear to
necessarily be a target specific problem. See discussion at
https://bugs.llvm.org/show_bug.cgi?id=51204.
The file was modifiedmlir/test/mlir-cpu-runner/math_polynomial_approx.mlir
Commit 0fc3ebb70a2d71d4b13102ed932a23a386104c17 by VenkataRamanaiah.Nalamothu
[SelectionDAG][NFC] Fix typo in VerifyDAGDiverence() function name

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D109674
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/include/llvm/CodeGen/SelectionDAG.h
Commit 9db20822f795f1057d5ba31bdc2aa82a6d96a6a0 by llvm-dev
[APInt] Add APIntOps::ScaleBitMask helper

APInt is used to describe a bit mask in a variety of value tracking and demanded bits/elts functions.

When traversing through dst/src operands, we have a number of places where these masks need to widened/narrowed to translate through bitcasts, reductions etc. to a different type.

This patch add a APIntOps::ScaleBitMask common helper, adds unit test coverage, and updates a number of cases to use the the helper instead of their own implementation.

This came up on D109065 where we currently have to add yet another implementation of the same code.

Differential Revision: https://reviews.llvm.org/D109683
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was modifiedllvm/unittests/ADT/APIntTest.cpp
The file was modifiedllvm/include/llvm/ADT/APInt.h
The file was modifiedllvm/lib/Support/APInt.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Commit ec92f788f34373eafb8b1663245a6ab425405abb by marius.brehler
[mlir][emitc] Print signed integers properly

Previously negative integers were printed as large unsigned values.

Reviewed By: marbre

Differential Revision: https://reviews.llvm.org/D109690
The file was modifiedmlir/lib/Target/Cpp/TranslateToCpp.cpp
The file was modifiedmlir/test/Target/Cpp/const.mlir
Commit abca4c012f2a0938508db5af7ea421f426336663 by kazu
[Utils] Use make_early_inc_range (NFC)
The file was modifiedllvm/lib/Transforms/Utils/InlineFunction.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUnroll.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
The file was modifiedllvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
Commit 181d18ef53db1e5810bf6b905fbafc91da9b5baa by nicolas.vasilache
[mlir][Linalg] Insert static buffers as high as possible during ComprehensiveBufferization.

This revision allows hoisting static alloc/dealloc pairs as high as possible during ComprehensiveBufferization.
This also aligns such allocated buffers to 128B by default.

This change exhibited some issues wrt insertion points and a missing copy that are also fixed in this revision; tests are updated accordingly.

Differential Revision: https://reviews.llvm.org/D109684
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
Commit 726b5d3416714c29ad24837c838aa376999531dd by VenkataRamanaiah.Nalamothu
[RegScavenger][NFC] Refer to the already initialized local variable for spill slot index

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D109501
The file was modifiedllvm/lib/CodeGen/RegisterScavenging.cpp
Commit 1a56a291c5ab4681fb34386f1501336545daa8d6 by thakis
[gn build] Fix typos in config visibility lists

GN https://gn-review.googlesource.com/c/gn/+/12140 identified these
typos. Fix them.

No effective behavior change.
The file was modifiedllvm/utils/gn/secondary/lldb/source/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/lldb/source/Plugins/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/lld/Common/BUILD.gn
Commit 5746c76f3fc93cc1a21caf24e35b638218a6eed7 by listmail
Revert "[IndVars] Break backedge and replace PHIs if loop exits on 1st iteration"

This reverts commit d9ca444835e67960df927d5b8cade57776fdd8cb.  See review for why.
The file was modifiedllvm/lib/Transforms/Scalar/IndVarSimplify.cpp
The file was modifiedllvm/test/Transforms/IndVarSimplify/eliminate-backedge.ll
Commit 6fec6552f54885ae06bf76b35f9f1173a0561a4c by listmail
Revert "[IndVars] Replace PHIs if loop exits on 1st iteration"

This reverts commit 5a6dfb27ca7424f15a20f9bb7ec90d858865faa3.  See original review for why.
The file was modifiedllvm/lib/Transforms/Scalar/IndVarSimplify.cpp
The file was modifiedllvm/test/Transforms/IndVarSimplify/eliminate-backedge.ll
The file was modifiedllvm/test/Transforms/IndVarSimplify/eliminate-exit-no-dl.ll
The file was modifiedllvm/test/Transforms/IndVarSimplify/floating-point-iv.ll
Commit bfcf979978df11bb1b664368341b368356bc3430 by jonathanchesterfield
Revert "[openmp] Fix 51647, corrupt bitcode on amdgpu"

This reverts commit d5c049a3f68791490e8c87d9974e9831ede0ada0.
Going to re-commit it in pieces for easier application to 13
The file was modifiedllvm/test/Transforms/OpenMP/spmdization.ll
The file was modifiedllvm/test/Transforms/OpenMP/custom_state_machines.ll
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
Commit 71052ea1e3c63b7209731fdc1726d10640d97480 by jonathanchesterfield
[openmp] Apply code change from D109500
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
Commit 6775ad2025fc74c76fc440efb1de98de2179b6bc by jonathanchesterfield
[openmp] Apply test change from D109500
The file was modifiedllvm/test/Transforms/OpenMP/custom_state_machines.ll
The file was modifiedllvm/test/Transforms/OpenMP/spmdization.ll

Summary

  1. Bump gunicorn version (details)
  2. Docs pages should not mention SVN anymore (details)
Commit 60fdaa9b7f2d83d406eae76daf29d27914f114cd by Chris Matthews
Bump gunicorn version

I have been using 19.9 on our servers for many months,
it works great and has statsd support.
The file was modifiedrequirements.server.txt (diff)
Commit 6a3f7bbaa221aa13acb72947363acbc95a1bf583 by Chris Matthews
Docs pages should not mention SVN anymore
The file was modifieddocs/_templates/index.html (diff)