Changes

Summary

  1. Add O3 flag to VLS and VLA configs (details)
Commit 3ddb899dea13cab48f1c79587f9eb5ec836b5459 by matthew.devereau
Add O3 flag to VLS and VLA configs

A missing O3 flag in the VLS and VLA buildbots was resulting
in some false positives slipping through. e.g., CLAMR fails when
running LNT with O3 but passes without it.
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)

Summary

  1. [flang] Make 'this_image()' an intrinsic function (details)
  2. CodeView: static_cast result of getOffset() to size_t. (details)
  3. [examples] Fix SectionMemoryManager deconstruction error with MSVC. (details)
  4. [FuncSpec] Specialising on addresses of const global values. (details)
  5. [Clang] Fix long double availability check (details)
  6. Revert "[examples] Fix SectionMemoryManager deconstruction error with MSVC." (details)
  7. [Test] One more missing opportunity on IndVars check removal (details)
  8. Revert "[PowerPC][ELF] make sure local variable space does not overlap with parameter save area" (details)
  9. [DSE] Add test cases with stores to objects before they escape. (details)
Commit ed921282e551f2252ccfcbddd7a85ad8a006ed3f by rasmussen17
[flang] Make 'this_image()' an intrinsic function

Added 'this_image()' to the list of functions that are evaluated as intrinsic.
Added IsCoarray functions to determine if an expression is a coarray (corank > 1).

Added save attribute to coarray variables in test file, this_image.f90.

reviewers: klausler, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D108059
The file was modifiedflang/lib/Evaluate/intrinsics.cpp
The file was modifiedflang/lib/Evaluate/tools.cpp
The file was addedflang/test/Semantics/this_image.f90
The file was modifiedflang/test/Semantics/call10.f90
The file was modifiedflang/docs/Intrinsics.md
The file was modifiedflang/include/flang/Evaluate/tools.h
Commit fc08cfb8884db2f0a871479f7fc640e364a9ffe9 by peter
CodeView: static_cast result of getOffset() to size_t.

Silences a narrowing conversion warning on 32-bit platforms after D109923.
The file was modifiedllvm/lib/DebugInfo/CodeView/SimpleTypeSerializer.cpp
Commit 63838d88145feaeb839efff8f40ab1e98597e423 by Lang Hames
[examples] Fix SectionMemoryManager deconstruction error with MSVC.

This commit fixes an order-of-initialization issue: If the default mmapper
object is destroyed while some global SectionMemoryManager is still using it
then calls to the mapper from ~SectionMemoryManager will fail. This issue was
causing failures when running the LLVM Kaleidoscope examples on windows.

Switching to a ManagedStatic solves the initialization order issue.

Patch by Justice Adams. Thanks Justice!

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D107087
The file was modifiedllvm/lib/ExecutionEngine/SectionMemoryManager.cpp
Commit 97cc678cc4a226119ab48d399fd277283f4acc2d by sjoerd.meijer
[FuncSpec] Specialising on addresses of const global values.

This introduces an option to allow specialising on the address of global
values. This option is off by default because it is likely not that profitable
to do so and needs more investigation. Before, we were specialising on addresses
and thus this changes the default behaviour.

Differential Revision: https://reviews.llvm.org/D109775
The file was modifiedllvm/test/Transforms/FunctionSpecialization/function-specialization-nonconst-glob.ll
The file was modifiedllvm/lib/Transforms/IPO/FunctionSpecialization.cpp
Commit 0195f8621f1814967f9cd3ef51ee61117e914299 by qiucofan
[Clang] Fix long double availability check

fae0dfa changed code to check 128-bit float availability, since it
introduced a new 128-bit double type on PowerPC. However, there're other
long float types besides IEEE float128 and PPC double-double requiring
this feature.

Reviewed By: ronlieb

Differential Revision: https://reviews.llvm.org/D109943
The file was modifiedclang/lib/Sema/Sema.cpp
The file was addedclang/test/OpenMP/amdgcn_ldbl_check.cpp
Commit 7e8babeb9d55749e3c9cae8802a644c5c96b1942 by Lang Hames
Revert "[examples] Fix SectionMemoryManager deconstruction error with MSVC."

This reverts commit 63838d88145feaeb839efff8f40ab1e98597e423, which broke tests
on some bots. See e.g. https://lab.llvm.org/buildbot#builders/109/builds/22561
The file was modifiedllvm/lib/ExecutionEngine/SectionMemoryManager.cpp
Commit 74fa174f339ce378c44010c579634ddefb35ff29 by mkazantsev
[Test] One more missing opportunity on IndVars check removal
The file was modifiedllvm/test/Transforms/IndVarSimplify/outer_phi.ll
Commit 80584f00564630a9edf51f74049b4eeaff4549b1 by czhengsz
Revert "[PowerPC][ELF] make sure local variable space does not overlap with parameter save area"

This causes mix-compile issues on PowerPC Linux.

This reverts commit 324bd467a217d89b5ab84a8ed66c0d3dc431782a.
The file was modifiedllvm/test/CodeGen/PowerPC/byval.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
Commit bdafe3124c9ac7276df6092e041d4b328684c680 by flo
[DSE] Add test cases with stores to objects before they escape.

Test cases where stores to local objects can be removed because the
object does not escape before calls that may read/write to memory.

Includes test from PR50220.
The file was addedllvm/test/Transforms/DeadStoreElimination/captures-before-call.ll