SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [AArch64][SVE] Implement integer compare intrinsics (details)
  2. [X86] Regenerate test to fix build bot failures (details)
  3. [DebugInfo][CGP] Update dbg.values when sinking address computations (details)
  4. [clangd] Try to fix CompileCommandsTests on windows. NFC (details)
  5. [llvm-readobj] - Implement --dependent-libraries flag. (details)
  6. [AArch64][SVE2] Implement while comparison intrinsics (details)
  7. [LV] Record GEP widening decisions in recipe (NFCI) (details)
  8. [llvm-readobj][llvm-readelf] - Refactor parsing of the SHT_GNU_versym (details)
  9. [clangd] Store index::SymbolKind in HoverInfo (details)
  10. [clangd] Switch Hover.All to structured tests (details)
  11. Fix for PR44000. Optimization record for bytecode input missing. Review (details)
  12. Attempt to fix a debuginfo test that wasn't as generic as I thought (details)
  13. Fix building shared libraries broken by 8e48e8e3e32. (details)
  14. gn build: Unbreak mac build after 4066591 (details)
  15. [AArch64] Fix a bug with jump table generation (details)
  16. [OPENMP]Moved warning fo mapping non-trivially copiable types into a (details)
  17. [AIX][XCOFF] created a test case to verify the raw text section of (details)
  18. [ARM][MVE] Fix copy-paste error in VQSHL instruction ids. (details)
  19. [libomptarget][nfc] Move three more files to common (details)
  20. [libomptarget][nfc] Move cuda threadfence functions behind kmpc_impl (details)
  21. [OpenMP] Fix linkage issue on FreeBSD (details)
  22. [LegalizeTypes] Add missing case for STRICT_FP_ROUND softening (details)
  23. [lldb][test] Handle .categories lookup for inline tests. (details)
  24. Cleanup and speedup NativeRegisterContextLinux_arm64 (details)
  25. [NFC][AIX][XCOFF] fixed compile warning on the strncpy. (details)
  26. [clang-format] update trailing newline treatment in clang-format.py (details)
  27. update string comparison in clang-format.py (details)
  28. [NFC][AIX][XCOFF] if the size of Csect is zero, the Csect do not need (details)
  29. [ASTImporter] Implicitly declare parameters for imported ObjCMethodDecls (details)
  30. [MBP] Avoid tail duplication if it can't bring benefit (details)
  31. Add `QualType::hasAddressSpace`. NFC. (details)
  32. [InstCombine] improve readability; NFC (details)
  33. [InstCombine] reduce code duplication; NFC (details)
  34. [InstCombine] improve readability; NFC (details)
  35. [InstCombine] reduce indentation; NFC (details)
  36. [OPENMP]Reorganize OpenMP warning groups. (details)
  37. clang/AMDGPU: Fix default for frame-pointer attribute (details)
  38. [PGO][PGSO] Instrument the code gen / target passes. (details)
  39. [x86] add cost model special-case for insert/extract from element 0 (details)
  40. Revert "ARM-Darwin: keep the frame register reserved even if not (details)
  41. [libcxx{,abi}] Don't link libpthread and libdl on Fuchsia (details)
  42. Revert "[InstCombine] reduce indentation; NFC" (details)
  43. Revert "[InstCombine] improve readability; NFC" (details)
  44. Revert "[InstCombine] reduce code duplication; NFC" (details)
  45. Avoid naming variable after type to fix GCC 5.3 build (details)
  46. Stop checking whether std::strong_* has ::equivalent members. (details)
  47. [AutoFDO] Inline replay for cold/small callees from sample profile (details)
  48. [OPENMP50]Add if clause in distribute simd directive. (details)
  49. Revert "[PGO][PGSO] Instrument the code gen / target passes." (details)
  50. [clang-tidy] Pass -faligned-allocation on the compiler command line to (details)
  51. [X86] Don't setup and teardown memory for a musttail call (details)
  52. [WPD] Remove unused parameter (NFC) (details)
  53. [InstSimplify] add tests for copysign with fneg operand; NFC (details)
  54. [analyzer] Fix false positive on introspection of a block's internal (details)
Commit bb8c679f4bf2a2056b4fafb8b3a3d61254e39219 by cullen.rhodes
[AArch64][SVE] Implement integer compare intrinsics
Summary: Adds intrinsics for the following:
    * cmphs, cmphi
   * cmpge, cmpgt
   * cmpeq, cmpne
   * cmplt, cmple
   * cmplo, cmpls
Includes a minor change to `TLI.getMemValueType` that fixes a crash due
to the scalable flag being dropped.
Reviewers: sdesmalen, efriedma, rengolin, rovka, dancgr, huntergr
Reviewed By: efriedma
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl,
llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70889
The file was modifiedllvm/include/llvm/CodeGen/TargetLowering.h
The file was addedllvm/test/CodeGen/AArch64/sve-intrinsics-int-compares.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td
The file was modifiedllvm/lib/Target/AArch64/AArch64InstrFormats.td
The file was modifiedllvm/lib/Target/AArch64/SVEInstrFormats.td
The file was addedllvm/test/CodeGen/AArch64/sve-intrinsics-int-compares-with-imm.ll
Commit b3009edcf3342c312a26416cca531bd4a29756de by ulrich.weigand
[X86] Regenerate test to fix build bot failures
After my recent commit daee549 the following test case is failing:
CodeGen/X86/vector-constrained-fp-intrinsics.ll
Not sure why I didn't catch this earlier, seems to be affected by other
changes that came in recently.
Fixed by regerenating the test again.  Sorry for the disruption!
The file was modifiedllvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll
Commit c93a9b15ce885f7a4d90b0f9ff2928fc7e2cd74a by jeremy.morse
[DebugInfo][CGP] Update dbg.values when sinking address computations
One of CodeGenPrepare's optimizations is to duplicate address
calculations into basic blocks, so that as much information as possible
can be folded into memory addressing operands. This is great -- but the
dbg.value variable location intrinsics are not updated in the same way.
This can lead to dbg.values referring to address computations in other
blocks that will never be encoded into the DAG, while duplicate address
computations are performed locally that could be used by the dbg.value.
Some of these (such as non-constant-offset GEPs) can't be salvaged past.
Fix this by, whenever we duplicate an address computation into a block,
looking for dbg.value users of the original memory address in the same
block, and redirecting those to the local computation.
Differential Revision: https://reviews.llvm.org/D58403
The file was modifiedllvm/lib/CodeGen/CodeGenPrepare.cpp
The file was addedllvm/test/DebugInfo/Generic/codegenprep-addrsink.ll
Commit 6b11760128751455a73d9f00a5f935d1f49fbd0f by sam.mccall
[clangd] Try to fix CompileCommandsTests on windows. NFC
The file was modifiedclang-tools-extra/clangd/CompileCommands.h
The file was modifiedclang-tools-extra/clangd/unittests/CompileCommandsTests.cpp
Commit cd2c409cebb4f838549fba0b71093b0e15d52bca by grimar
[llvm-readobj] - Implement --dependent-libraries flag.
There is no way to dump SHT_LLVM_DEPENDENT_LIBRARIES sections currently.
This patch implements this.
The section is described here:
https://llvm.org/docs/Extensions.html#sht-llvm-dependent-libraries-section-dependent-libraries
Differential revision: https://reviews.llvm.org/D70665
The file was modifiedllvm/tools/llvm-readobj/ObjDumper.h
The file was addedllvm/test/tools/llvm-readobj/elf-dependent-libraries.test
The file was modifiedllvm/tools/llvm-readobj/llvm-readobj.cpp
The file was modifiedllvm/docs/CommandGuide/llvm-readobj.rst
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
Commit b31a531f9bbf7a3ae193df6009f5ee542f760017 by cullen.rhodes
[AArch64][SVE2] Implement while comparison intrinsics
Summary: Adds the following intrinsics:
    * whilege, whilegt, whilehi, whilehs
Reviewers: sdesmalen, rovka, dancgr, efriedma, rengolin, huntergr
Reviewed By: sdesmalen
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl,
llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70909
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was addedllvm/test/CodeGen/AArch64/sve2-intrinsics-while.ll
Commit 39ccc099c901ca511f0c43f163adef6699038326 by gil.rapaport
[LV] Record GEP widening decisions in recipe (NFCI)
InnerLoopVectorizer's code called during VPlan execution still relies on
original IR's def-use relations to decide which vector code to generate,
limiting VPlan transformations ability to modify def-use relations and
still have ILV generate the vector code. This commit moves GEP operand
queries controlling how GEPs are widened to a dedicated recipe and
extracts GEP widening code to its own ILV method taking those recorded
decisions as arguments. This reduces ingredient def-use usage by ILV as
a step towards full VPlan-based def-use relations.
Differential revision: https://reviews.llvm.org/D69067
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanHCFGTransforms.h
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp
The file was modifiedllvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp
Commit 18cf93a6eddfd201df87f9152bee38e81dfdc40f by grimar
[llvm-readobj][llvm-readelf] - Refactor parsing of the SHT_GNU_versym
section.
This introduce a new helper which is used to parse the SHT_GNU_versym
section. LLVM/GNU styles implementations now use it to share the logic.
Differential revision: https://reviews.llvm.org/D71054
The file was modifiedllvm/test/tools/llvm-readobj/elf-verdef-invalid.test
The file was modifiedllvm/test/tools/llvm-readobj/elf-verneed-invalid.test
The file was addedllvm/test/tools/llvm-readobj/elf-versym-invalid.test
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/test/Object/invalid.test
The file was modifiedllvm/test/tools/llvm-readobj/all.test
The file was modifiedllvm/test/Object/multiple-sections.yaml
Commit 24439a761c5e21fda8f9410a5e80ff07b4ba03a2 by kadircet
[clangd] Store index::SymbolKind in HoverInfo
Summary: LSP's SymbolKind has some shortcomings when it comes to C++
types, index::SymbolKind has more detailed info like Destructor,
Parameter, MACRO etc.
We are planning to make use of that information in our new Hover
response, and it would be nice to display the Symbol type in full
detail, rather than some approximation.
Reviewers: sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70723
The file was modifiedclang-tools-extra/clangd/Hover.h
The file was modifiedclang-tools-extra/clangd/unittests/HoverTests.cpp
The file was modifiedclang-tools-extra/clangd/Hover.cpp
Commit c5adbac9b85a53112a9fc9b72e64d2615e3e4df9 by kadircet
[clangd] Switch Hover.All to structured tests
Reviewers: sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95,
cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70911
The file was modifiedclang-tools-extra/clangd/unittests/HoverTests.cpp
The file was modifiedclang-tools-extra/clangd/Hover.h
Commit a3b2552575d3c333e928446fac10cc5b0b4092a9 by zahira.ammarguellat
Fix for PR44000. Optimization record for bytecode input missing. Review
is here:  https://reviews.llvm.org/D70691
The file was addedclang/test/CodeGen/opt-record-1.c
The file was modifiedclang/lib/CodeGen/CodeGenAction.cpp
Commit 4650b2f36949407ef25686440e3d65ac47709deb by jmorse+git
Attempt to fix a debuginfo test that wasn't as generic as I thought
An ARM buildbot croaks when this test doesn't have a triple specified:

http://lab.llvm.org:8011/builders/clang-cmake-armv7-quick/builds/12021/
Move the test to the X86 directory and put an x86_64 triple on the llc
command line.
The file was addedllvm/test/DebugInfo/X86/codegenprep-addrsink.ll
The file was removedllvm/test/DebugInfo/Generic/codegenprep-addrsink.ll
Commit 8c714c93023d7d039a23fb47c8256570ba54b9c7 by a.v.lapshin
Fix building shared libraries broken by 8e48e8e3e32.
The file was modifiedllvm/tools/dsymutil/CMakeLists.txt
The file was modifiedllvm/tools/dsymutil/LLVMBuild.txt
Commit 133a92f87cbad8a9a6a5e23a70c63112bb973c28 by thakis
gn build: Unbreak mac build after 4066591
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
Commit 2c63e8e36df071e62feb7ac9c948d6fdd54e0c35 by cullen.rhodes
[AArch64] Fix a bug with jump table generation
Summary: When trying to calculate the offsets for the jump table entries
we fail to take into account the block alignment, which could be greater
than 4 bytes. This led to cases where the jump table offset was too big
to fit in a byte.
Reviewers: t.p.northover, sdesmalen, ostannard
Reviewed By: ostannard
Subscribers: ostannard, kristof.beyls, hiraditya, llvm-commits
Committed on behalf of David Sherwood (david-arm)
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70533
The file was modifiedllvm/lib/Target/AArch64/AArch64CompressJumpTables.cpp
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
The file was addedllvm/test/CodeGen/AArch64/jti-correct-datatype.mir
Commit 4db4868d7ed90e771960646c9c0bcd121eb20617 by a.bataev
[OPENMP]Moved warning fo mapping non-trivially copiable types into a
separate group.
Need to move this warning into a separate group to make easier to
disable this warning, if required.
The file was modifiedclang/test/OpenMP/distribute_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_loop_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_loop_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_map_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_firstprivate_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_reduction_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_simd_loop_messages.cpp
The file was modifiedclang/test/OpenMP/teams_shared_messages.cpp
The file was modifiedclang/test/OpenMP/target_map_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_lastprivate_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_map_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_firstprivate_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_loop_messages.cpp
The file was modifiedclang/test/OpenMP/target_update_from_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_lastprivate_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_reduction_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_firstprivate_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_reduction_messages.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/OpenMP/teams_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_map_messages.cpp
The file was modifiedclang/test/OpenMP/target_simd_loop_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_lastprivate_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_simd_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_loop_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_parallel_map_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_shared_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_reduction_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_shared_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_map_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_shared_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_reduction_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_simd_lastprivate_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/target_simd_map_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_loop_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_loop_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_reduction_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_lastprivate_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_firstprivate_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/distribute_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_firstprivate_messages.cpp
The file was modifiedclang/test/OpenMP/target_parallel_for_simd_map_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_map_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_shared_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_shared_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_map_messages.cpp
The file was modifiedclang/test/OpenMP/target_update_to_messages.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_ast_print.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_linear_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_simd_lastprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_firstprivate_messages.cpp
Commit 4a7e00df346561131a07db350643ec54113129a1 by diggerlin
[AIX][XCOFF] created a test case to verify the raw text section of
xcoffobject file
SUMMARY: in the patch https://reviews.llvm.org/D66969 . we need a test
case to verify the out text section of the xcoffobject file is correct
or not.
but we do not have llvm disassembly tools to dump the xcoffobjectfile .
since we commit the patch https://reviews.llvm.org/D70255, we have tools
for it. we create this test case for it.
Reviewers: daltenty,hubert.reinterpretcast,
Differential Revision: https://reviews.llvm.org/D70719
The file was addedllvm/test/CodeGen/PowerPC/aix-xcoff-textdisassembly.ll
Commit 3fab4276cbf1a57f049428145d4c9a0d9bcfa82c by simon.tatham
[ARM][MVE] Fix copy-paste error in VQSHL instruction ids.
Summary: The immediate forms of the MVE VQSHL instruction have MC names
like
`MVE_VSLIimms8` and `MVE_VSLIimmu32`. Those names are confusing, because
VSLI is a completely different shift instruction with no semantic
relation to VQSHL. But it just happens to be defined immediately before
VQSHL in `ARMInstrMVE.td`, so this looks like a copy-paste error.
Renamed the ids to match the instruction name.
Reviewers: ostannard, dmgreen, MarkMurrayARM, miyuki
Reviewed By: miyuki
Subscribers: kristof.beyls, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71114
The file was modifiedllvm/unittests/Target/ARM/MachineInstrTest.cpp
The file was modifiedllvm/lib/Target/ARM/ARMInstrMVE.td
Commit cd90f49d708dbc8f367eb4c575f62ab614900f59 by jonathanchesterfield
[libomptarget][nfc] Move three more files to common
Summary: [libomptarget][nfc] Move three more files to common
Reviewers: ABataev, jdoerfert, grokos
Reviewed By: ABataev
Subscribers: openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D71103
The file was addedopenmp/libomptarget/deviceRTLs/common/src/parallel.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
The file was addedopenmp/libomptarget/deviceRTLs/common/src/sync.cu
The file was removedopenmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu
The file was addedopenmp/libomptarget/deviceRTLs/common/src/support.cu
The file was removedopenmp/libomptarget/deviceRTLs/nvptx/src/sync.cu
The file was removedopenmp/libomptarget/deviceRTLs/nvptx/src/support.cu
Commit 0dd62c5c2ec854997ca45f810175c5d1426b474e by jonathanchesterfield
[libomptarget][nfc] Move cuda threadfence functions behind kmpc_impl
Summary:
[libomptarget][nfc] Move cuda threadfence functions behind kmpc_impl
Part of building code under common/ without requiring a cuda compiler
Reviewers: ABataev, jdoerfert, grokos
Reviewed By: ABataev
Subscribers: jvesely, jfb, openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D71102
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/support.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/sync.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/loop.cu
Commit 27535a144910149262f9c2dffb6a24c0b7166f15 by David CARLIER
[OpenMP] Fix linkage issue on FreeBSD
needs kmp_set_thread_affinity_mask_initial implementation.
The file was modifiedopenmp/runtime/src/kmp_affinity.cpp
Commit 984f1bb3e794b83da5dde9440f9807c645e8e6db by john.brawn
[LegalizeTypes] Add missing case for STRICT_FP_ROUND softening
This fixes a test failure in test/CodeGen/ARM/fp-intrinsics.ll.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
Commit 03a242bd41ee49e17f8da96af9787d13e7ea2b93 by rupprecht
[lldb][test] Handle .categories lookup for inline tests.
Summary: When creating a test with `lldbinline.MakeInlineTest()`, the
reported `inspect.getfile(test.__class__)` is `lldbtest.pyc`, meaning
any `.categories` file will be ineffective for those tests. Check for
the test_filename first, which inline tests will set.
Additionally, raise an error with the starting dir if `.categories` is
not found. This makes the problem more obvious when it occurs: when the
test is separated from the test framework tree.
Reviewers: labath, JDevlieghere
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D71099
The file was modifiedlldb/packages/Python/lldbsuite/test/test_result.py
Commit b6f9d7b8fb2eb6b78ac93ebd5ea4e36c04469285 by omair.javaid
Cleanup and speedup NativeRegisterContextLinux_arm64
Summary: This patch simplifies register accesses in
NativeRegisterContextLinux_arm64 and also adds some bare minimum caching
to avoid multiple calls to ptrace during a stop.
Linux ptrace returns data in the form of structures containing GPR/FPR
data. This means that one single call is enough to read all GPRs or
FPRs. We do that once per stop and keep reading from or writing to the
buffer that we have in NativeRegisterContextLinux_arm64 class. Before a
resume or detach we write all buffers back.
This is tested on aarch64 thunder x1 with Ubuntu 18.04. Also tested
regressions on x86_64.
Reviewers: labath, clayborg
Reviewed By: labath
Subscribers: kristof.beyls, lldb-commits
Differential Revision: https://reviews.llvm.org/D69371
The file was modifiedlldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h
The file was modifiedlldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.h
Commit c04b63eccd5f9fc19da410caea88d29f11e9886c by diggerlin
[NFC][AIX][XCOFF] fixed compile warning on the strncpy.
SUMMARY: There is warning when compile the file XCOFFObjectWriter.cpp
/srv/llvm-buildbot-srcatch/llvm-build-dir/openmp-gcc-x86_64-linux-debian/llvm.src/llvm/lib/MC/XCOFFObjectWriter.cpp:414:17:
warning: 'char* strncpy(char*, const char*, size_t)' specified bound 8
equals destination size [-Wstringop-truncation]
The patch fixed the warning.
Reviewer: daltenty
Differential Revision: https://reviews.llvm.org/D71119
The file was modifiedllvm/lib/MC/XCOFFObjectWriter.cpp
Commit b8e03ff50389d83dabf800203f689e227697c996 by paulhoad
[clang-format] update trailing newline treatment in clang-format.py
Summary: The current clang-format.py does not handle trailing newlines
at the end of a file correctly. Trailing empty lines get removed except
one. As far as I understand this is because clang-format gets fed from
stdin and writes to stdout when called from clang-format.py. In a
"normal" file (with no trailing empty lines) the string that gets passed
to clang-format does not contain a trailing '\n' after the '\n'.join
from python. The clang-format binary does not add a trailing newline to
input from stdin, but (if there are multiple trailing '\n', all except
one get removed).
When reading back this means that we see in python from a "normal" file
a string with no trailing '\n'. From a file with (potentially multiple)
empty line(s) at the end, we get a string with one trailing '\n' back in
python. In the former case all is fine, in the latter case split('\n')
makes one empty line at the end of the file out of the clang-format
output. Desired would be instead that the **file** ends with a newline,
but not with an empty line.
For the case that a user specifies a range to format (and wants to keep
trailing empty lines) I did **not** try to fix this by simply removing
all trailing newlines from the clang-format output. Instead, I add a
'\n' to the unformatted file content (i.e. newline-terminate what is
passed to clang-format) and then strip off the last newline from the
output (which itself is now for sure the newline termination of the
clang-format output).
(Should this get approved, I'll need someone to help me land this.)
Reviewers: klimek, MyDeveloperDay
Reviewed By: MyDeveloperDay
Patch By: pseyfert
Subscribers: cfe-commits, llvm-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D70864 update trailing
newline treatment in clang-format.py
The file was modifiedclang/tools/clang-format/clang-format.py
Commit 79f8c20e2cb634c1b8e42f01b42fc5ab2a512d60 by paulhoad
update string comparison in clang-format.py
Summary: Python 3.8 introduces a SyntaxWarning about string comparisons
with 'is'. This commit updates the string comparison in clang-format.py
that is done with 'is not' to '!='. This should not break compatibility
with older python versions (tested 3.4.9, 2.7.17, 2.7.5, 3.8.0).
Reviewers: MyDeveloperDay, klimek, llvm-commits, cfe-commits
Reviewed By: MyDeveloperDay, klimek
Patch By: pseyfert
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D70664
The file was modifiedclang/tools/clang-format/clang-format.py
Commit 50d72fa1461b71d898237f3ce19ab367d0508c87 by diggerlin
[NFC][AIX][XCOFF] if the size of Csect is zero, the Csect do not need
write any data into sections
SUMMARY:
if the size of Csect is zero, the Csect do not need write any data into
sections for example, the TOC Csect has zero size, it do not need invoke
a Asm.writeSectionData(W.OS, Csect.MCCsect, Layout);
Reviewers: daltenty Subscribers: rupprecht, seiyai,hiraditya
Differential Revision: https://reviews.llvm.org/D71120
The file was modifiedllvm/lib/MC/XCOFFObjectWriter.cpp
Commit 164e0fc5c7f782b174db5c87b37725ea0e174853 by Raphael Isemann
[ASTImporter] Implicitly declare parameters for imported ObjCMethodDecls
Summary: When Sema encounters a ObjCMethodDecl definition it declares
the implicit parameters for the ObjCMethodDecl. When importing such a
method with the ASTImporter we need to do the same for the imported
method otherwise we will crash when generating code (where CodeGen
expects that this was called by Sema).
Note I had to implement Objective-C[++] support in Language.cpp as this
is the first test for Objective-C and this would otherwise just hit this
'not implemented' assert when running the unit test.
Reviewers: martong, a.sidorin, shafik
Reviewed By: martong
Subscribers: rnkovacs, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71112
The file was modifiedclang/unittests/AST/ASTImporterTest.cpp
The file was modifiedclang/lib/AST/ASTImporter.cpp
The file was modifiedclang/unittests/AST/Language.cpp
Commit 72942459d070cbfe6f3524e89c3ac37440be7890 by carrot
[MBP] Avoid tail duplication if it can't bring benefit
Current tail duplication integrated in bb layout is designed to increase
the fallthrough from a BB's predecessor to its successor, but we have
observed cases that duplication doesn't increase fallthrough, or it
brings too much size overhead.
To overcome these two issues in function canTailDuplicateUnplacedPreds I
add two checks:
  make sure there is at least one duplication in current work set.
the number of duplication should not exceed the number of successors.
The modification in hasBetterLayoutPredecessor fixes a bug that
potential predecessor must be at the bottom of a chain.
Differential Revision: https://reviews.llvm.org/D64376
The file was modifiedllvm/test/CodeGen/X86/tail-dup-merge-loop-headers.ll
The file was modifiedllvm/test/CodeGen/RISCV/atomic-rmw.ll
The file was modifiedllvm/test/CodeGen/X86/reverse_branches.ll
The file was modifiedllvm/test/CodeGen/PowerPC/expand-contiguous-isel.ll
The file was modifiedllvm/test/CodeGen/X86/tail-dup-repeat.ll
The file was modifiedllvm/test/CodeGen/X86/shadow-stack.ll
The file was modifiedllvm/test/CodeGen/AArch64/tbz-tbnz.ll
The file was modifiedllvm/test/CodeGen/X86/tail-opts.ll
The file was modifiedllvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
The file was addedllvm/test/CodeGen/PowerPC/no-duplicate.ll
The file was modifiedllvm/lib/CodeGen/MachineBlockPlacement.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/loop_header_nopred.mir
The file was modifiedllvm/test/CodeGen/Thumb2/cbnz.ll
The file was modifiedllvm/test/CodeGen/X86/ragreedy-hoist-spill.ll
The file was modifiedllvm/test/CodeGen/AArch64/swifterror.ll
The file was modifiedllvm/test/CodeGen/PowerPC/branch-opt.ll
The file was modifiedllvm/test/CodeGen/RISCV/remat.ll
The file was modifiedllvm/test/CodeGen/X86/tail-merge-after-mbp.mir
The file was modifiedllvm/test/CodeGen/X86/mmx-coalescing.ll
The file was modifiedllvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
The file was modifiedllvm/test/CodeGen/X86/speculative-load-hardening.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/mve-float-loops.ll
The file was modifiedllvm/test/CodeGen/X86/pr38795.ll
The file was modifiedllvm/test/CodeGen/PowerPC/block-placement.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/uniform-cfg.ll
Commit f2ace9d6005b4ffc6f6fc068c1aac897d871df7a by michael.hliao
Add `QualType::hasAddressSpace`. NFC.
- Add that as a shorthand of <T>.getQualifiers().hasAddressSpace().
- Simplify related code.
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/Sema/SemaOverload.cpp
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/lib/Sema/SemaInit.cpp
The file was modifiedclang/include/clang/AST/Type.h
The file was modifiedclang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
Commit 6bb62a9d970b677cbaee848d5e4800e1c3fb42c9 by spatel
[InstCombine] improve readability; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit db5739658467e20a52f20e769d3580412e13ff87 by spatel
[InstCombine] reduce code duplication; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit 7250ef3613cc6b81145b9543bafb86d7f9466cde by spatel
[InstCombine] improve readability; NFC
CreateIntCast returns the input if its type matches, so need to
duplicate that check.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit 8bf8ef7116bd0daec570b35480ca969b74e66c6e by spatel
[InstCombine] reduce indentation; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit 543ffb4a2d6435004f7e41f2b3d9040aeb3e78ef by a.bataev
[OPENMP]Reorganize OpenMP warning groups.
openmp-mapping group is a subgroup of openmp-target warning group. Also,
added global openmp group to control all other OpenMP warning groups.
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was modifiedclang/test/OpenMP/nesting_of_regions.cpp
The file was modifiedclang/test/OpenMP/simd_loop_messages.cpp
The file was modifiedclang/test/OpenMP/target_map_messages.cpp
The file was modifiedclang/test/OpenMP/simd_aligned_messages.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit 2cc11941a2e88236e0b4842229454ae6d85142cd by arsenm2
clang/AMDGPU: Fix default for frame-pointer attribute
Enabling optimization should allow frame pointer elimination.
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was addedclang/test/Driver/frame-pointer-elim.cl
Commit 9a0b5e14075a1f42a72eedb66fd4fde7985d37ac by yamauchi
[PGO][PGSO] Instrument the code gen / target passes.
Summary: Split off of D67120.
Add the profile guided size optimization instrumentation / queries in
the code gen or target passes. This doesn't enable the size
optimizations in those passes yet as they are currently disabled in
shouldOptimizeForSize (for non-IR pass queries).
Reviewers: davidxl
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71072
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was modifiedllvm/lib/CodeGen/MachineBlockPlacement.cpp
The file was modifiedllvm/lib/Target/X86/X86PadShortFunction.cpp
The file was modifiedllvm/lib/Target/X86/X86OptimizeLEAs.cpp
The file was modifiedllvm/test/CodeGen/X86/O0-pipeline.ll
The file was modifiedllvm/test/CodeGen/AArch64/O3-pipeline.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
The file was modifiedllvm/include/llvm/CodeGen/AsmPrinter.h
The file was modifiedllvm/lib/CodeGen/BranchFolding.h
The file was modifiedllvm/lib/CodeGen/IfConversion.cpp
The file was modifiedllvm/lib/CodeGen/ExpandMemCmp.cpp
The file was modifiedllvm/lib/CodeGen/MachineCombiner.cpp
The file was modifiedllvm/lib/CodeGen/TailDuplicator.cpp
The file was modifiedllvm/test/CodeGen/AArch64/O0-pipeline.ll
The file was modifiedllvm/lib/CodeGen/BranchFolding.cpp
The file was modifiedllvm/lib/Target/X86/X86FixupBWInsts.cpp
The file was modifiedllvm/lib/CodeGen/CodeGenPrepare.cpp
The file was modifiedllvm/include/llvm/CodeGen/TailDuplicator.h
The file was modifiedllvm/test/CodeGen/ARM/O3-pipeline.ll
The file was modifiedllvm/lib/CodeGen/TailDuplication.cpp
The file was modifiedllvm/test/CodeGen/X86/O3-pipeline.ll
Commit 7ff0fcb53f6e71bc22d37494fdfa68bbf2d3709b by spatel
[x86] add cost model special-case for insert/extract from element 0
This is a follow-up to D70607 where we made any extract element on SLM
more costly than default. But that is pessimistic for extract from
element 0 because that corresponds to x86 movd/movq instructions. These
generally have >1 cycle latency, but they are probably implemented as
single uop instructions.
Note that no vectorization tests are affected by this change. Also, no
targets besides SLM are affected because those are falling through to
the default cost of 1 anyway. But this will become visible/important if
we add more specializations via cost tables.
Differential Revision: https://reviews.llvm.org/D71023
The file was modifiedllvm/test/Analysis/CostModel/X86/shuffle-extract_subvector.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/vector-extract.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/fptosi.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/fptoui.ll
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
Commit c7faa6814248cf2443cce856a74247fc70699f98 by asbirlea
Revert "ARM-Darwin: keep the frame register reserved even if not
updated."
This reverts commit a7d90af1be48234ce583e00fb16e33633d44ae38.
This revision came back as the root-cause for crashes in internal
ARM-IOS apps. Reproducer in https://bugs.llvm.org/show_bug.cgi?id=44231.
The file was removedllvm/test/CodeGen/ARM/r7-fixed-darwin.ll
The file was modifiedllvm/test/CodeGen/Thumb/long.ll
The file was modifiedllvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/2010-03-15-AsmCCClobber.ll
Commit 1aa17023819216dae77c7798510f178dae07a57f by phosek
[libcxx{,abi}] Don't link libpthread and libdl on Fuchsia
These are a part of the libc so linking these explicitly isn't necessary
and embedding these as deplibs causes link time error.
This issues was introduced in a9b5fff which changed how we emit deplibs.
Differential Revision: https://reviews.llvm.org/D71135
The file was modifiedlibcxxabi/cmake/config-ix.cmake
The file was modifiedlibcxx/cmake/config-ix.cmake
Commit 142a75a9b16632d5bad60ae50b9171bfddbe422a by spatel
Revert "[InstCombine] reduce indentation; NFC"
This reverts commit 8bf8ef7116bd0daec570b35480ca969b74e66c6e. At least 1
of these supposedly NFC commits wasn't - sanitizer bot is angry.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit b6d6f5470f281db4716db8b2306113924afc6887 by spatel
Revert "[InstCombine] improve readability; NFC"
This reverts commit 7250ef3613cc6b81145b9543bafb86d7f9466cde. At least 1
of these supposedly NFC commits wasn't - sanitizer bot is angry.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit 43e2a901e1521759a0176cdec3aad4d00919142e by spatel
Revert "[InstCombine] reduce code duplication; NFC"
This reverts commit db5739658467e20a52f20e769d3580412e13ff87. At least 1
of these supposedly NFC commits wasn't - sanitizer bot is angry.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit 7f63db197e7453a6438c15e50a5508cc7613a293 by rnk
Avoid naming variable after type to fix GCC 5.3 build
GCC says:
.../llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp:195:12: error: ‘InfoType’
is not a class, namespace, or enumeration
      case InfoType::EndOfList:
                  ^
Presumably, GCC thinks InfoType is a variable here. Work around it by
using the name IT as is done above.
The file was modifiedllvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
Commit dbd112972416f48f7e5b117e7a14b6e4b4d38146 by richard
Stop checking whether std::strong_* has ::equivalent members.
Any attempt to use these would be a bug, so we shouldn't even look for
them.
The file was modifiedclang/test/SemaCXX/std-compare-cxx2a.cpp
The file was modifiedclang/lib/AST/ComparisonCategories.cpp
Commit 7b61ae68ecd7a127e69c9e0d2563bddb7eccad7a by aktoon
[AutoFDO] Inline replay for cold/small callees from sample profile
loader
Summary: Sample profile loader of AutoFDO tries to replay previous
inlining using context sensitive profile. The replay only repeats
inlining if the call site block is hot. As a result it punts inlining of
small functions, some of which can be beneficial for size, and will
still be inlined by CSGCC inliner later. The oscillation between sample
profile loader's inlining and regular CGSSC inlining cause unnecessary
loss of context-sensitive profile. It doesn't have much impact for
inline decision itself, but it negatively affects post-inline profile
quality as CGSCC inliner have to scale counts which is not as accurate
as the original context sensitive profile, and bad post-inline profile
can misguide code layout.
This change added regular Inline Cost calculation for sample profile
loader, so we can inline small functions upfront under switch
-sample-profile-inline-size. In addition
-sample-profile-cold-inline-threshold is added so we can tune the
separate size threshold - currently the default is chosen to be the same
as regular inliner's cold call-site threshold.
Reviewers: wmi, davidxl
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70750
The file was modifiedllvm/lib/Transforms/IPO/SampleProfile.cpp
The file was addedllvm/test/Transforms/SampleProfile/Inputs/inline-cold.prof
The file was addedllvm/test/Transforms/SampleProfile/inline-cold.ll
Commit 779a180d964bf362f26f4c493db749cbbae550c5 by a.bataev
[OPENMP50]Add if clause in distribute simd directive.
According to OpenMP 5.0, if clause can be used in for simd directive. If
condition in the if clause if false, the non-vectorized version of the
loop must be executed.
The file was addedclang/test/OpenMP/distribute_simd_if_messages.cpp
The file was modifiedclang/test/OpenMP/distribute_simd_codegen.cpp
The file was modifiedclang/lib/Basic/OpenMPKinds.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was modifiedclang/test/OpenMP/distribute_simd_ast_print.cpp
The file was modifiedclang/include/clang/Basic/OpenMPKinds.def
Commit 2eb30fafa5f95d60353909c7c676431f2a29a745 by yamauchi
Revert "[PGO][PGSO] Instrument the code gen / target passes."
This reverts commit 9a0b5e14075a1f42a72eedb66fd4fde7985d37ac.
This seems to break buildbots.
The file was modifiedllvm/test/CodeGen/X86/O0-pipeline.ll
The file was modifiedllvm/lib/Target/X86/X86FixupBWInsts.cpp
The file was modifiedllvm/test/CodeGen/AArch64/O0-pipeline.ll
The file was modifiedllvm/lib/CodeGen/BranchFolding.h
The file was modifiedllvm/lib/CodeGen/MachineBlockPlacement.cpp
The file was modifiedllvm/lib/CodeGen/IfConversion.cpp
The file was modifiedllvm/lib/Target/X86/X86PadShortFunction.cpp
The file was modifiedllvm/include/llvm/CodeGen/TailDuplicator.h
The file was modifiedllvm/include/llvm/CodeGen/AsmPrinter.h
The file was modifiedllvm/lib/CodeGen/TailDuplicator.cpp
The file was modifiedllvm/test/CodeGen/AArch64/O3-pipeline.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
The file was modifiedllvm/test/CodeGen/X86/O3-pipeline.ll
The file was modifiedllvm/test/CodeGen/ARM/O3-pipeline.ll
The file was modifiedllvm/lib/CodeGen/TailDuplication.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was modifiedllvm/lib/CodeGen/CodeGenPrepare.cpp
The file was modifiedllvm/lib/CodeGen/MachineCombiner.cpp
The file was modifiedllvm/lib/CodeGen/BranchFolding.cpp
The file was modifiedllvm/lib/CodeGen/ExpandMemCmp.cpp
The file was modifiedllvm/lib/Target/X86/X86OptimizeLEAs.cpp
Commit a7bdab2e9d59ba0fdf06390f4ddadfd00fe50f2e by Akira
[clang-tidy] Pass -faligned-allocation on the compiler command line to
fix compile error
The test was failing when run on OSes older than MacOSX10.14 because
aligned deallocation functions are unavailable on older OSes.
rdar://problem/57706710
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/cert-mem57-cpp-cpp17.cpp
Commit c089f0289856b8f72b06c30daa7848e431c8e36e by rnk
[X86] Don't setup and teardown memory for a musttail call
Summary: musttail calls should not require allocating extra stack for
arguments. Updates to arguments passed in memory should happen in place
before the epilogue.
This bug was mostly a missed optimization, unless inalloca was used and
store to push conversion fired.
If a reserved call frame was used for an inalloca musttail call, the
call setup and teardown instructions would be deleted, and SP
adjustments would be inserted in the prologue and epilogue. You can see
these are removed from several test cases in this change.
In the case where the stack frame was not reserved, i.e. call frame
optimization fires and turns argument stores into pushes, then the
imbalanced call frame setup instructions created for inalloca calls
become a problem. They remain in the instruction stream, resulting in a
call setup that allocates zero bytes (expected for inalloca), and a call
teardown that deallocates the inalloca pack. This deallocation was
unbalanced, leading to subsequent crashes.
Reviewers: hans
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71097
The file was addedllvm/test/CodeGen/X86/musttail-inalloca.ll
The file was modifiedllvm/test/CodeGen/X86/musttail-varargs.ll
The file was modifiedllvm/test/CodeGen/X86/cfguard-checks.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/musttail-tailcc.ll
Commit c8e36862f594a50fdd141337a3209965dabf4858 by tejohnson
[WPD] Remove unused parameter (NFC)
Remove unused parameter.
The file was modifiedllvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
Commit d5abaaf140ac7f6d59ac11c0ecbdb8fa93972bf6 by spatel
[InstSimplify] add tests for copysign with fneg operand; NFC
The file was modifiedllvm/test/Transforms/InstSimplify/call.ll
Commit 040c39d50fb9c60de9020caf86e1a1fccfd6f861 by Artem Dergachev
[analyzer] Fix false positive on introspection of a block's internal
layout.
When implementation of the block runtime is available, we should not
warn that block layout fields are uninitialized simply because they're
on the stack.
The file was modifiedclang/test/Analysis/blocks.m
The file was modifiedclang/lib/StaticAnalyzer/Core/RegionStore.cpp