LLVM/project 796fafellvm/lib/IR Instructions.cpp, llvm/test/CodeGen/WinEH wineh-no-demotion.ll

[IR] Update `PHINode::removeIncomingValueIf()` to use the swap strategy like `PHINode::removeIncomingValue()` (#172639)

As suggested in https://github.com/llvm/llvm-project/pull/171963, update
`PHINode::removeIncomingValueIf()` to use the swap strategy too.
DeltaFile
+13-17llvm/lib/IR/Instructions.cpp
+12-12llvm/test/Transforms/DFAJumpThreading/dfa-unfold-select.ll
+6-6llvm/test/Transforms/DFAJumpThreading/dfa-jump-threading-transform.ll
+1-1llvm/test/CodeGen/WinEH/wineh-no-demotion.ll
+1-1llvm/test/Transforms/JumpThreading/select.ll
+1-1llvm/test/Transforms/PhaseOrdering/AArch64/hoist-load-from-vector-loop.ll
+34-386 files

LLVM/project 10d4e73llvm/utils/gn/secondary/lldb/source/Utility BUILD.gn

[gn build] Port e4c4498798b0
DeltaFile
+0-1llvm/utils/gn/secondary/lldb/source/Utility/BUILD.gn
+0-11 files

LLVM/project 5766b8dllvm/utils/gn/secondary/clang/unittests/Analysis/Scalable BUILD.gn

[gn build] Port f58d2f32c0eb
DeltaFile
+1-0llvm/utils/gn/secondary/clang/unittests/Analysis/Scalable/BUILD.gn
+1-01 files

LLVM/project 5f4b9aeclang/include/clang/DependencyScanning DependencyScannerImpl.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp

[clang][deps] Extract `CompilerInvocation` creation (#172744)

This PR extracts the modifications we make to the scanner's
`CompilerInvocation` from multiple spots into a single function.
DeltaFile
+67-62clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+0-3clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+67-652 files

LLVM/project 5d1618bbolt/lib/Passes Aligner.cpp

[BOLT][AArch64] Use minimal code alignment for cold functions (#172598)

On AArch64, a larger cold code size can result in more veneers,
increasing potential overhead for hot code. This change minimizes cold
code size when the `--use-compact-aligner` option (default) is enabled.
DeltaFile
+7-0bolt/lib/Passes/Aligner.cpp
+7-01 files

LLVM/project 0036c67llvm/lib/CodeGen/SelectionDAG LegalizeFloatTypes.cpp LegalizeTypes.h, llvm/test/CodeGen/RISCV fp-fcanonicalize.ll

[RISCV]: Implemented softening of `FCANONICALIZE` (#169234)

The `ISD::FCANONICALIZE` is mapped to `llvm.minnum(x, x)`.

Closes https://github.com/llvm/llvm-project/issues/169216
DeltaFile
+1,749-121llvm/test/CodeGen/RISCV/fp-fcanonicalize.ll
+27-0llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+1-0llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
+1,777-1213 files

LLVM/project b1d0e5fllvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool BUILD.gn

[gn] port a1d3cdc88aa2
DeltaFile
+1-0llvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool/BUILD.gn
+1-01 files

LLVM/project f8377f5lldb/packages/Python/lldbsuite/test dotest.py

[lldb/test] Fix libcxx configuration handling for remote platforms (#172761)

When using --platform remote-* options, explicitly clear the libcxx
configuration variables instead of just warning and continuing with
potentially set values. This prevents the test suite from attempting to
use custom libcxx paths on remote platforms where they're not
applicable.

Also initialize libcxx variables to None when not specified, ensuring a
clean state regardless of how the arguments are parsed.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+11-1lldb/packages/Python/lldbsuite/test/dotest.py
+11-11 files

LLVM/project 76a17d9mlir/lib/IR AsmPrinter.cpp, mlir/test/IR print-attr-type-aliases.mlir

[MLIR] Fix AsmPrinter alias uniqueness check (#172734)

A sneaky operator precedence bug caused this resize operation to always
truncate to size 0 or 1:
```
probeAlias.resize(alias.size() + isdigit(alias.back()) ? 1 : 0);
```
Because `+` is associated more strongly than the ternary operator. This
eventually led to the asm printer repeating an alias name, generating
illegal IR.

It wasn't a problem in most cases because it required two things to
trigger:
- Two naturally generated aliases, one "xxx" the other "xxx1" (note the
trailing "1").
- A unique processing order such that we process "xxx", then "xxx1",
then "xxx" again. This can only happen if they happen to be at different
"alias depths", since otherwise the pre-sorting will make sure this
ordering never happens. See the added test case for how this works in

    [3 lines not shown]
DeltaFile
+16-0mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
+13-0mlir/test/IR/print-attr-type-aliases.mlir
+8-0mlir/test/lib/Dialect/Test/TestAttrDefs.td
+5-2mlir/lib/IR/AsmPrinter.cpp
+42-24 files

LLVM/project 16036e6mlir/lib/Conversion/ArithAndMathToAPFloat MathToAPFloat.cpp

vectorize isop and abs (but not tests)
DeltaFile
+44-45mlir/lib/Conversion/ArithAndMathToAPFloat/MathToAPFloat.cpp
+44-451 files

LLVM/project 9c7708allvm/lib/CAS OnDiskCommon.cpp

[CAS] For `tryLockFileThreadSafe()` return immediately if timeout is 0 (#172729)

This matches the semantics of `tryLockFile()` as well.
DeltaFile
+2-0llvm/lib/CAS/OnDiskCommon.cpp
+2-01 files

LLVM/project 79ed37cmlir/lib/Dialect/Transform/SMTExtension SMTExtensionOps.cpp, mlir/test/python/dialects transform_smt_ext.py

[MLIR][Transform] Fix transform.smt.constrain_params's verifier (#172753)

Verifier was insisting on `!transform.param<...>` too early and hence
crashed on `!transform.any_param`.
DeltaFile
+2-3mlir/lib/Dialect/Transform/SMTExtension/SMTExtensionOps.cpp
+1-1mlir/test/python/dialects/transform_smt_ext.py
+3-42 files

LLVM/project 5acdf79clang/include/clang/Frontend CompilerInstance.h, clang/lib/Frontend CompilerInstance.cpp

[clang] NFC: Qualify argument with `const` (#172745)

DeltaFile
+1-1clang/include/clang/Frontend/CompilerInstance.h
+1-1clang/lib/Frontend/CompilerInstance.cpp
+2-22 files

LLVM/project bbf48d7llvm/test/MC/RISCV rv32zbkb-only-valid.s

[RISCV] Fix incorrect check-prefix in rv32zbkb-only-valid.s. NFC
DeltaFile
+1-1llvm/test/MC/RISCV/rv32zbkb-only-valid.s
+1-11 files

LLVM/project 9cc1585llvm/lib/Transforms/Vectorize VPlanUtils.h VPlan.cpp

[VPlan] Add VPBlockUtils::transferSuccessors (NFCI).

Add a new helper to transfer successors to a new, unconnected VPBB.
Helps to simplify existing code, and prepare for upcoming changes.
DeltaFile
+9-6llvm/lib/Transforms/Vectorize/VPlanUtils.h
+2-3llvm/lib/Transforms/Vectorize/VPlan.cpp
+11-92 files

LLVM/project 4014d83clang/lib/Headers __clang_cuda_runtime_wrapper.h, clang/test/Headers cuda_with_openmp.cu

clang: Remove unnecessary host-supports-cuda from test (#171174)

DeltaFile
+3-2clang/test/Headers/cuda_with_openmp.cu
+1-0clang/lib/Headers/__clang_cuda_runtime_wrapper.h
+4-22 files

LLVM/project 2c7483fllvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor/AMDGPU nofpclass-amdgcn-rcp.ll

AMDGPU: Handle amdgcn_rcp in computeKnownFPClass
DeltaFile
+78-78llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-rcp.ll
+33-0llvm/lib/Analysis/ValueTracking.cpp
+111-782 files

LLVM/project eecce16llvm/test/Transforms/Attributor/AMDGPU nofpclass-amdgcn-rcp.ll

ValueTracking: Add baseline test for amdgcn_rcp handling (#172489)

DeltaFile
+430-0llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-rcp.ll
+430-01 files

LLVM/project 53005fdllvm/docs Extensions.rst, llvm/include/llvm/CodeGen BasicBlockSectionsProfileReader.h

Use the Propeller CFG profile in the PGO analysis map if it is available. (#163252)

This PR implements the emitting of the post-link CFG information in PGO
analysis map, as explained in the
[RFC](https://discourse.llvm.org/t/rfc-extending-the-pgo-analysis-map-with-propeller-cfg-frequencies/88617).
This is enabled by a flag `pgo-analysis-map-emit-bb-sections-cfg`.

This PR bumps the SHT_LLVM_BB_ADDR_MAP version to 5.
Also includes some refactoring changes related to storing the CFG in the
Basic block sections profile reader.
DeltaFile
+100-0llvm/test/CodeGen/X86/basic-block-sections-pgo-features.ll
+52-27llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h
+29-38llvm/lib/CodeGen/BasicBlockSectionsProfileReader.cpp
+34-7llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+10-11llvm/lib/CodeGen/BasicBlockMatchingAndInference.cpp
+14-1llvm/docs/Extensions.rst
+239-848 files not shown
+265-11014 files

LLVM/project 7b9168cllvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor/AMDGPU nofpclass-amdgcn-exp.ll

ValueTracking: Handle amdgcn_exp2 in computeKnownFPClass (#172495)

DeltaFile
+24-24llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-exp.ll
+7-1llvm/lib/Analysis/ValueTracking.cpp
+31-252 files

LLVM/project 82cdc30llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor/AMDGPU nofpclass-amdgcn-log.ll

ValueTracking: Handle amdgcn_log in computeKnownFPClass (#172492)

DeltaFile
+48-48llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-log.ll
+7-4llvm/lib/Analysis/ValueTracking.cpp
+55-522 files

LLVM/project af65178lldb/source/Plugins/Process/Utility StopInfoMachException.cpp

[lldb][fixup] Address PR feedback
DeltaFile
+7-6lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
+7-61 files

LLVM/project e7892d7llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AArch64 vector-div-by-promoted-const-no-assertion.ll

[DAGCombiner] Fix assertion failure in vector division lowering (#172321)

DeltaFile
+79-0llvm/test/CodeGen/AArch64/vector-div-by-promoted-const-no-assertion.ll
+16-3llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+95-32 files

LLVM/project 576fc79clang/lib/CodeGen CGExpr.cpp, clang/test/AST/HLSL matrix-single-subscript-getter.hlsl

Merge branch 'main' into users/makslevental/reapplymathtoapfloat
DeltaFile
+205-0clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptGetter.hlsl
+0-192clang/test/Driver/modules-driver-cxx20-module-usage-scanner.cpp
+127-0clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptSetter.hlsl
+122-0clang/test/AST/HLSL/matrix-single-subscript-getter.hlsl
+84-0clang/lib/CodeGen/CGExpr.cpp
+77-0compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
+615-19243 files not shown
+1,150-37449 files

LLVM/project e7ef722mlir/test/Dialect/XeGPU propagate-layout-subgroup.mlir

[MLIR][XeGPU] Fix the test issue brought by PR172125 (#172742)

Fix merge test issue brought by
https://github.com/llvm/llvm-project/pull/172125
DeltaFile
+0-2mlir/test/Dialect/XeGPU/propagate-layout-subgroup.mlir
+0-21 files

LLVM/project 316116ecompiler-rt/lib/scudo/standalone combined.h allocator_config.def, compiler-rt/lib/scudo/standalone/tests combined_test.cpp

[scudo] Add an option to zero memory on deallocation. (#142394)

When all the blocks of a page are unused, the page will be full of zero
and decommitted on operating systems that scan the memory.

Change-Id: I278055d82057090b0a04d812b49cf93fdf467478

Co-authored-by: Christopher Ferris <cferris1000 at users.noreply.github.com>
DeltaFile
+77-0compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
+19-0compiler-rt/lib/scudo/standalone/combined.h
+7-0compiler-rt/lib/scudo/standalone/allocator_config.def
+6-0compiler-rt/lib/scudo/standalone/flags.inc
+109-04 files

LLVM/project 60b6c53clang/include/clang/AST Expr.h, clang/lib/CodeGen CGExpr.cpp

[HLSL][Matrix] Add support for single subscript accessor (#170779)

fixes #166206

- Add swizzle support if row index is constant
- Add test cases
- Add new AST type
- Add new LValue for Matrix Row Type
- TODO: Make the new LValue a dynamic index version of ExtVectorElt
DeltaFile
+205-0clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptGetter.hlsl
+127-0clang/test/CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptSetter.hlsl
+122-0clang/test/AST/HLSL/matrix-single-subscript-getter.hlsl
+84-0clang/lib/CodeGen/CGExpr.cpp
+66-5clang/lib/Sema/SemaExpr.cpp
+66-0clang/include/clang/AST/Expr.h
+670-529 files not shown
+1,040-935 files

LLVM/project 26c9598lldb/test/API/lang/objc/objc-ivar-protocols main.m

[lldb] Fix TestIvarProtocols to use +new instead of +alloc (NFC) (#172740)

A test failure on green dragon shows the ivars with unexpected values.
This makes the test us an explicit `+new` instead of `+alloc` (which is
missing an `-init` call).
DeltaFile
+1-1lldb/test/API/lang/objc/objc-ivar-protocols/main.m
+1-11 files

LLVM/project 534f334clang/include/clang/Basic DiagnosticDriverKinds.td, clang/include/clang/Driver Driver.h

Revert "Reland [clang][modules-driver] Add scanner to detect C++20 module presence (#153497)" (2nd Attempt) (#172701)

DeltaFile
+0-192clang/test/Driver/modules-driver-cxx20-module-usage-scanner.cpp
+0-66clang/lib/Driver/Driver.cpp
+0-50clang/lib/Lex/DependencyDirectivesScanner.cpp
+0-32clang/include/clang/Driver/Driver.h
+0-7clang/include/clang/Lex/DependencyDirectivesScanner.h
+0-7clang/include/clang/Basic/DiagnosticDriverKinds.td
+0-3542 files not shown
+0-3628 files

LLVM/project 0f41390llvm/test/CodeGen/AArch64 fmla.ll sve-streaming-mode-fixed-length-fp-arith.ll, llvm/test/CodeGen/NVPTX shift-opt.ll

Merge branch 'main' into refactor-getDistributeLayoutAttr-fix
DeltaFile
+259-123llvm/test/CodeGen/RISCV/half-arith.ll
+379-0llvm/test/CodeGen/NVPTX/shift-opt.ll
+185-185llvm/test/CodeGen/AArch64/fmla.ll
+160-160llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-fp-arith.ll
+276-0llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-log.ll
+130-0llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-exp.ll
+1,389-468131 files not shown
+2,466-1,224137 files