LLVM/project 65cf047clang/test/CodeGen memprof-pgho-thinlto.cpp

fix test

Created using spr 1.3.8-beta.1
DeltaFile
+2-2clang/test/CodeGen/memprof-pgho-thinlto.cpp
+2-21 files

LLVM/project 4996645clang-tools-extra/clang-tidy/objc AssertEqualsCheck.cpp, clang/docs LibASTMatchersReference.html

Revert "[ASTMatchers] Make isExpandedFromMacro accept llvm::StringRef… (#167060)" (#169238)

This reverts commit a52e1af7f766e26a78d10d31da98af041dd66410.

That commit reverted a change (making isExpandedFromMacro take a
std::string) that was explicitly added to avoid lifetime issues. We ran
into issues with some internal matchers due to this, and it probably is
not an uncommon downstream use case. This patch restroes the original
functionality and adds a test to ensure that the functionality is
preserved.

https://reviews.llvm.org/D90303 contains more discussion.
DeltaFile
+13-0clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
+3-3clang/docs/LibASTMatchersReference.html
+1-1clang/include/clang/ASTMatchers/ASTMatchers.h
+1-1clang-tools-extra/clang-tidy/objc/AssertEqualsCheck.cpp
+18-54 files

LLVM/project f7ed15butils/bazel/llvm-project-overlay/clang BUILD.bazel, utils/bazel/llvm-project-overlay/lldb BUILD.bazel

[bazel] Fully port 3773bbe9e7916ec89fb3e3cd02e29c54cabac82b (#169247)

e5edb512072bc040face27ed6c9e92f4a5f1e910 attempted to port this, but
seemed to miss a couple things that still showed up on CI. This patch
fixes up the missing pieces.
DeltaFile
+1-1utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+3-13 files

LLVM/project 0b24571clang/test/CodeGen memprof-pgho.cpp, llvm/lib/Transforms/Utils SimplifyLibCalls.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.8-beta.1

[skip ci]
DeltaFile
+43-37llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+61-0clang/test/CodeGen/memprof-pgho.cpp
+13-0llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+117-373 files

LLVM/project 92e399bclang/lib/CodeGen BackendUtil.cpp, clang/test/CodeGen memprof-pgho-thinlto.cpp memprof-pgho.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.8-beta.1
DeltaFile
+43-37llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+65-0clang/test/CodeGen/memprof-pgho-thinlto.cpp
+61-0clang/test/CodeGen/memprof-pgho.cpp
+12-1clang/lib/CodeGen/BackendUtil.cpp
+13-0llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+1-3clang/test/CodeGen/lto-newpm-pipeline.c
+195-412 files not shown
+199-418 files

LLVM/project 51926e9clang/test/CodeGen memprof-pgho.cpp, llvm/lib/Transforms/Utils SimplifyLibCalls.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.8-beta.1
DeltaFile
+43-37llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+61-0clang/test/CodeGen/memprof-pgho.cpp
+13-0llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+117-373 files

LLVM/project 2c80b76llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/test/Transforms/InstCombine simplify-libcalls-new.ll

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.8-beta.1

[skip ci]
DeltaFile
+43-37llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+13-0llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+56-372 files

LLVM/project ca9a341llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/test/Transforms/InstCombine simplify-libcalls-new.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.8-beta.1
DeltaFile
+43-37llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+13-0llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+56-372 files

LLVM/project 996213cllvm/lib/Transforms/Vectorize VPlanRecipes.cpp VPlanSLP.cpp

[VPlan] Refine mayRead/WriteFromMemory for VPInst, fix VPlan SLP check.

Fix VPlan SLP check incorrectly bailing out for non-VPInstructions.
Starting from the beginning of the block will include canonical IVs,
which in turn are not VPInstructions. If we hit a non-VPInstruction, we
should conservatively treat is as potentially unvectorizable.

To keep the tests working as expected, refine mayRead/WriteFromMemory
for Load and GEP VPInstructions.
DeltaFile
+8-2llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+2-2llvm/lib/Transforms/Vectorize/VPlanSLP.cpp
+10-42 files

LLVM/project bbd99aalldb/unittests/Expression DWARFExpressionTest.cpp

Fix #168467 (r598213) (#169232)

Co-authored-by: Aiden Grossman <agrossman154 at yahoo.com>
DeltaFile
+1-3lldb/unittests/Expression/DWARFExpressionTest.cpp
+1-31 files

LLVM/project c543615llvm Maintainers.md

[LLVM] Add myself to the former maintainers list. (#169201)

I was the SelectionDAG maintainer (then called code owner) from
aebfacb008246b912e2fc5a454939a3de942303b (requested to take it up by
Evan Cheng) and yielded the role to Justin Bogner as of
d8ed65dda0b10b5d9fa6ebd2da46e733fbde5512.
DeltaFile
+1-0llvm/Maintainers.md
+1-01 files

LLVM/project d40c8dcclang/test/OpenMP parallel_default_variableCategory_codegen.cpp

[Clang][OpenMP] Make test use clang_cc1 (#169233)

This test does not actually need to use the clang driver. Using the
driver means that the environment plays much more into the tests
results. We ran into a situation where the driver decided not to pass
-fopenmp to the cc1 invocation, causing the test to fail.

This also makes the test more consistent with the other OpenMP tests and
should make it slightly faster (no subprocess invocation).
DeltaFile
+1-1clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
+1-11 files

LLVM/project 362de22lldb/cmake/modules LLDBConfig.cmake

[lldb] Fix SWIG bug detection in CMake (#169212)

The CMake
[`set()`](https://cmake.org/cmake/help/latest/command/set.html) command
does not accept a conditional expression as a value. As a result,
AFFECTED_BY_SWIG_BUG was being set to a string representation of the
condition rather than a boolean value, causing it to always evaluate as
truthy in subsequent if-checks.
DeltaFile
+7-2lldb/cmake/modules/LLDBConfig.cmake
+7-21 files

LLVM/project e5edb51clang/lib/Frontend CompilerInvocation.cpp, utils/bazel/llvm-project-overlay/clang BUILD.bazel

[bazel] Port 3773bbe9e7916ec89fb3e3cd02e29c54cabac82b
DeltaFile
+8-1utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+4-0utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
+0-2clang/lib/Frontend/CompilerInvocation.cpp
+1-1utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+14-45 files

LLVM/project e6f60a6clang/include/clang/CIR MissingFeatures.h, clang/lib/CIR/CodeGen CIRGenExprCXX.cpp CIRGenBuiltin.cpp

[CIR] Add builtin operator new/delete (#168578)

This PR adds `__builtin_operator_new` and `__builtin_operator_delete`.

The implementation is taken from clang code gen.
DeltaFile
+44-0clang/test/CIR/CodeGen/builtin_new_delete.cpp
+31-0clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp
+8-0clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
+5-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+1-0clang/include/clang/CIR/MissingFeatures.h
+89-05 files

LLVM/project 9be344allvm/lib/Target/AArch64 AArch64InstrInfo.td, llvm/test/CodeGen/AArch64 remat-fmov-vector-imm.mir

[AArch64] Mark FMOVvXfY_ns as rematerializable, cheap

Otherwise, the register allocator may spill and reload constants that
can be rematerialized with a single instruction.
DeltaFile
+194-0llvm/test/CodeGen/AArch64/remat-fmov-vector-imm.mir
+2-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+196-02 files

LLVM/project 8e2f544llvm/utils/TableGen/Common CodeGenDAGPatterns.h

[TableGen] Use std::array::fill instead of std::memset. NFC (#169204)

DeltaFile
+1-1llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
+1-11 files

LLVM/project b5750aallvm/lib/Target/AArch64 AArch64InstrInfo.td, llvm/test/CodeGen/AArch64 remat-fmov-vector-imm.mir

[AArch64] Mark FMOVvXfY_ns as rematerializable, cheap

Otherwise, the register allocator may spill and reload constants that
can be rematerialized with a single instruction.
DeltaFile
+160-0llvm/test/CodeGen/AArch64/remat-fmov-vector-imm.mir
+2-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+162-02 files

LLVM/project 3773bbeclang/include/clang/Frontend ASTUnit.h, clang/lib/Driver CreateASTUnitFromArgs.cpp CreateInvocationFromArgs.cpp

 [clang] Refactor to remove clangDriver dependency from clangFrontend  and flangFrontend (#165277)

This removes the dependency on clangDriver from clangFrontend and
flangFrontend.

This refactoring is part of a broader effort to support driver-managed
builds for compilations using C++ named modules and/or Clang modules.
It is required for linking the dependency scanning tooling against the
driver without introducing cyclic dependencies, which would otherwise
cause build failures when dynamic linking is enabled.
In particular, clangFrontend must no longer depend on clangDriver
for this to be possible.

This change was discussed in the following RFC:
https://discourse.llvm.org/t/rfc-new-clangoptions-library-remove-dependency-on-clangdriver-from-clangfrontend-and-flangfrontend/88773 
DeltaFile
+51-295clang/lib/Frontend/ASTUnit.cpp
+207-8clang/lib/Options/OptionUtils.cpp
+166-0clang/lib/Driver/CreateASTUnitFromArgs.cpp
+0-163clang/lib/Driver/ToolChains/CommonArgs.cpp
+65-81clang/include/clang/Frontend/ASTUnit.h
+119-0clang/lib/Driver/CreateInvocationFromArgs.cpp
+608-54756 files not shown
+1,047-79762 files

LLVM/project 8b7401fllvm/lib/Target/AArch64 AArch64MachineFunctionInfo.cpp

Fix MSVC "not all control paths return a value" warning. NFC. (#169222)

DeltaFile
+1-0llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
+1-01 files

LLVM/project a54edafllvm/include/llvm/ADT MapVector.h DenseMap.h, llvm/unittests/ADT MapVectorTest.cpp DenseMapTest.cpp

ADT: Complete the at() methods for DenseMap and MapVector (#169147)

Make it easier to use these containers as drop-in replacements for
std::map.
DeltaFile
+18-4llvm/include/llvm/ADT/MapVector.h
+15-0llvm/unittests/ADT/MapVectorTest.cpp
+8-0llvm/include/llvm/ADT/DenseMap.h
+8-0llvm/unittests/ADT/DenseMapTest.cpp
+49-44 files

LLVM/project 0332af2clang/include/clang/Basic BuiltinsX86.td

[X86] BuiltinsX86.td - merge avx512 cmp/ucmp builtins into common Features/Attributes blocks. NFC. (#169223)

DeltaFile
+22-74clang/include/clang/Basic/BuiltinsX86.td
+22-741 files

LLVM/project eea688fllvm/lib/Target/AArch64 AArch64InstrInfo.td, llvm/test/CodeGen/AArch64 remat-fmov-vector-imm.mir

[AArch64] Mark FMOVvXfY_ns as rematerializable, cheap

Otherwise, the register allocator may spill and reload constants that
can be rematerialized with a single instruction.
DeltaFile
+159-0llvm/test/CodeGen/AArch64/remat-fmov-vector-imm.mir
+2-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+161-02 files

LLVM/project 21378fbllvm/lib/Transforms/Vectorize VPlanTransforms.cpp VPlanPatternMatch.h, llvm/test/Transforms/LoopVectorize fcmp-uno-fold-interleave.ll fmax-without-fast-math-flags-interleave.ll

[VPlan] Merge `fcmp uno` feeding AnyOf. (#166823)

Fold
  any-of (fcmp uno %A, %A), (fcmp uno %B, %B), ... ->
  any-of (fcmp uno %A, %B), ...

This pattern is generated to check if any vector lane is NaN, and
combining multiple compares is beneficial on architectures that have
dedicated instructions.

Alive2 Proof: https://alive2.llvm.org/ce/z/vA_aoM

Combine suggested as part of
https://github.com/llvm/llvm-project/pull/161735

PR: https://github.com/llvm/llvm-project/pull/166823
DeltaFile
+8-23llvm/test/Transforms/LoopVectorize/fcmp-uno-fold-interleave.ll
+29-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-5llvm/test/Transforms/LoopVectorize/fmax-without-fast-math-flags-interleave.ll
+2-5llvm/test/Transforms/LoopVectorize/AArch64/fmin-without-fast-math-flags.ll
+2-5llvm/test/Transforms/LoopVectorize/AArch64/fmax-without-fast-math-flags.ll
+4-0llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
+47-381 files not shown
+48-397 files

LLVM/project 7485f34llvm/lib/Target/X86 X86ISelDAGToDAG.cpp, llvm/test/CodeGen/X86 pr169205.ll

[X86] X86ISelDAGToDAG - don't let ADD/SUB(X,1) -> SUB/ADD(X,-1) constant fold (#169217)

Extension to #168726 - ensure we peek through bitcasts to look for
constants (as constant folding will)

DAG should have constant folded this, but we're still fighting the lack
of proper topological sorting.

Fixes #169205
DeltaFile
+23-0llvm/test/CodeGen/X86/pr169205.ll
+2-1llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+25-12 files

LLVM/project 06fc87bflang/include/flang/Parser parse-tree.h, flang/lib/Parser openmp-parsers.cpp unparse.cpp

[flang][OpenMP] Better diagnostics for invalid or misplaced directives (#168885)

Add two more AST nodes, one for a misplaced end-directive, and one for
an invalid string following the OpenMP sentinel (e.g. "!$OMP XYZ").

Emit error messages when either node is encountered in semantic
analysis.
DeltaFile
+33-20flang/lib/Parser/openmp-parsers.cpp
+19-1flang/include/flang/Parser/parse-tree.h
+19-0flang/lib/Semantics/check-omp-structure.cpp
+16-0flang/test/Semantics/OpenMP/loop-association.f90
+6-6flang/test/Semantics/OpenMP/loop-transformation-construct02.f90
+10-0flang/lib/Parser/unparse.cpp
+103-2710 files not shown
+129-3516 files

LLVM/project e4a96efclang/include/clang/CIR/Analysis FallThroughWarning.h, clang/lib/CIR/Analysis FallThroughWarning.cpp

Unknown should break
DeltaFile
+25-29clang/lib/CIR/Analysis/FallThroughWarning.cpp
+7-4clang/lib/CIR/FrontendAction/CIRGenAction.cpp
+2-3clang/include/clang/CIR/Analysis/FallThroughWarning.h
+34-363 files

LLVM/project 93b20e7llvm/lib/Target/AArch64 AArch64InstrInfo.td AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 int-to-fp-no-neon.ll itofp.ll

[AArch64] Extend int-to-fp load optimization to support f16 (#168076)

DeltaFile
+33-15llvm/test/CodeGen/AArch64/int-to-fp-no-neon.ll
+24-12llvm/test/CodeGen/AArch64/itofp.ll
+13-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+3-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+73-284 files

LLVM/project f7aa0ffclang/include/clang/CIR/Analysis FallThroughWarning.h, clang/lib/CIR/Analysis FallThroughWarning.cpp

test1 working
DeltaFile
+195-33clang/lib/CIR/Analysis/FallThroughWarning.cpp
+10-5clang/lib/CIR/FrontendAction/CIRGenAction.cpp
+9-1clang/include/clang/CIR/Analysis/FallThroughWarning.h
+1-0clang/lib/Sema/AnalysisBasedWarnings.cpp
+215-394 files

LLVM/project 77a50e9mlir/lib/Dialect/Vector/IR ScalableValueBoundsConstraintSet.cpp

[mlir] Avoid else after return in ScalableValueBounds (NFC)
DeltaFile
+3-5mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
+3-51 files