[all-commits] [llvm/llvm-project] 620168: [flang][cuda] Save function result descriptor befo...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Sep 15 15:52:38 PDT 2026


  Branch: refs/heads/users/vitalybuka/spr/thinltobitcodewriter-encode-hotness-into-cfifunctions-metadata-2
  Home:   https://github.com/llvm/llvm-project
  Commit: 620168eaa2718bde5e8e09470758f881f6e25a66
      https://github.com/llvm/llvm-project/commit/620168eaa2718bde5e8e09470758f881f6e25a66
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/test/Lower/CUDA/cuda-managed-func-result.cuf

  Log Message:
  -----------
  [flang][cuda] Save function result descriptor before function exit (#223484)

The cuf.free was called before the AbstractResult pass spies the result
over the passed argument. Make sure the result is saved before the
descriptor is freed.


  Commit: 7576379fdd2a6652dabda1cc8f21fdf11356f5a7
      https://github.com/llvm/llvm-project/commit/7576379fdd2a6652dabda1cc8f21fdf11356f5a7
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/include/llvm/IR/PassManager.h

  Log Message:
  -----------
  [IR] Remove isRequired from PassInfoMixin (#223818)

This is no longer needed after 80a1e2125c7ec7db402925d153c0dbd6041d3004
and will not have any downstream difference given no one should be
inheriting directly from PassInfoMixin given it is in the detail
namespace.


  Commit: 08390c01e301987e0ae7ba903fdc5c477a687728
      https://github.com/llvm/llvm-project/commit/08390c01e301987e0ae7ba903fdc5c477a687728
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    R clang/test/CIR/CodeGen/call-conv-lowering-win64-skipped.c

  Log Message:
  -----------
  [CIR][NFC] Remove bad test (#223840)

This removes a test that was checking to see whether calling convention
lowering was applied for a Windows target. This test was causing CI
failures. We don't have enough Windows support implemented in CIR for
this to reliably even get to the point of making this negative check.
The test will end up being unstable, so I am just removing it.


  Commit: b0c4d416e5189e45eb09b79c681ecaa65080f73e
      https://github.com/llvm/llvm-project/commit/b0c4d416e5189e45eb09b79c681ecaa65080f73e
  Author: forking-google-bazel-bot[bot] <265904573+forking-google-bazel-bot[bot]@users.noreply.github.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [Bazel] Fixes 728d1c0 (#223855)

This fixes 728d1c058b3ee1407eb4e8bf26ddc1aff03e48f8 (#223043).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=728d1c058b3ee1407eb4e8bf26ddc1aff03e48f8

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>


  Commit: 218b71e3d4de375ea487ab45faecb8fea9cec1fe
      https://github.com/llvm/llvm-project/commit/218b71e3d4de375ea487ab45faecb8fea9cec1fe
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/dead_instructions.ll

  Log Message:
  -----------
  [VPlan] Remove dead cycles until none are left. (#223845)

Follow-up to https://github.com/llvm/llvm-project/pull/213632. Removing
a dead cycle may expose another dead cycle, which also needs removing.

Stop after cycle is remover to avoid crashing on invalid iterator, and
repeat until no cycles are left.


  Commit: 05a60d8a36893ae4f64604576a8493cd2ba74eb5
      https://github.com/llvm/llvm-project/commit/05a60d8a36893ae4f64604576a8493cd2ba74eb5
  Author: vangthao95 <vang.thao at amd.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCoExecInfo.h
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp

  Log Message:
  -----------
  [AMDGPU][NFC] Centralize co-execution stall calculation (#220335)


  Commit: c2fa65d33f124526bfe61d5125e203547076f4ce
      https://github.com/llvm/llvm-project/commit/c2fa65d33f124526bfe61d5125e203547076f4ce
  Author: junfengd-nv <junfengd at nvidia.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M clang/include/clang/Options/FlangOptions.td
    M clang/lib/Driver/ToolChains/Flang.cpp
    M flang/include/flang/Optimizer/Dialect/FIRAttr.h
    M flang/include/flang/Support/LangOptions.def
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    A flang/test/Driver/check-integer-mod-zero-divisor.f90
    M flang/test/Lower/Intrinsics/mod.f90
    M flang/test/Lower/Intrinsics/modulo.f90
    M flang/test/Lower/dummy-procedure.f90

  Log Message:
  -----------
  [flang] Diagnose integer MOD/MODULO when the divisor is zero (#222790)

Flang currently prints a garbage integer when the divisor of integer
MOD/MODULO is zero. For example:
```
program mod0_var
  integer :: a, p, r
  a = 5
  p = 0
  r = mod(a, p)
  print *, r
end program
```
Integer MOD/MODULO lower to arith.remsi. A zero divisor is undefined
behavior in LLVM, so the remainder can become poison and the program
neither crashes nor reports an error.

This change checks the second argument P when lowering integer
MOD/MODULO. If P is not a compile-time nonzero constant, a P == 0 test
is inserted. On that path, _FortranAReportFatalUserError is called with
the same messages as IntMod in flang-rt (MOD with P==0 / MODULO with
P==0). The fast path remains arith.remsi.

Before:
```
func.func private @fir.mod.i32.ref_i32.ref_i32(%arg0, %arg1) {
  %a = fir.load %arg0
  %p = fir.load %arg1
  %r = arith.remsi %a, %p : i32
  return %r
}
```

After:
```
func.func private @fir.mod.i32.ref_i32.ref_i32(%arg0, %arg1) {
  %a = fir.load %arg0
  %p = fir.load %arg1
  %zero = arith.constant 0 : i32
  %bad = arith.cmpi eq, %p, %zero : i32
  fir.if %bad {
    // fatal: same text as IntMod in
    // llvm-project/flang-rt/lib/runtime/numeric.cpp
  }
  %r = arith.remsi %a, %p : i32
  return %r
}
```


  Commit: 71cb3f47f9a296eacf4e0391b0e645d894ec7e2c
      https://github.com/llvm/llvm-project/commit/71cb3f47f9a296eacf4e0391b0e645d894ec7e2c
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M compiler-rt/test/orc/TestCases/Darwin/Generic/exceptions-stress-test-tower.cpp
    M compiler-rt/test/orc/TestCases/Darwin/Generic/exceptions.cpp
    M compiler-rt/test/orc/TestCases/Darwin/Generic/llvm-jitlink-force-link-objc.m
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-cross-file-method-call.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-nonlazy-class.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S
    M compiler-rt/test/orc/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/orc/lit.cfg.py

  Log Message:
  -----------
  [orc-rt] Disable old ORC runtime testcases on arm64e (#223670)

These regression tests are unsupported on arm64e. Disable them.

rdar://186687669


  Commit: 35c6acb89abf0ca576b63e544885cdb0cb010443
      https://github.com/llvm/llvm-project/commit/35c6acb89abf0ca576b63e544885cdb0cb010443
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    A clang/test/CIR/CodeGenBuiltins/builtin-maxnum-minnum.c
    M clang/test/CIR/CodeGenBuiltins/builtins-elementwise.c

  Log Message:
  -----------
  [CIR] Implement elementwise min/max/minimum/maximum/minnum/maxnum/etc (#222481)

These ended up being simple translations to llvm intrinsics, so other
than a single small 'magic decoder ring', this is a very trivial
implementation. The tests are taken from classic-codegen with some mild
modifications (as vector types don't work in arguments yet, and we are
testing more appropriately, as those were generated check lines).

This was found in an application we're trying to build.


  Commit: e35d15fe53ff0450e79de13f649f196b98547916
      https://github.com/llvm/llvm-project/commit/e35d15fe53ff0450e79de13f649f196b98547916
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp

  Log Message:
  -----------
  WebAssembly: Avoid using createDataLayout (#223836)

Find the datalayout from the IR context instead of copying one
from the TargetMachine


  Commit: 32a2f3f5ba378023a9d93064e5fe800662bd1b6b
      https://github.com/llvm/llvm-project/commit/32a2f3f5ba378023a9d93064e5fe800662bd1b6b
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/Options/FlangOptions.td
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/lib/Driver/ToolChains/Flang.cpp
    R clang/test/CIR/CodeGen/call-conv-lowering-win64-skipped.c
    A clang/test/CIR/CodeGenBuiltins/builtin-maxnum-minnum.c
    M clang/test/CIR/CodeGenBuiltins/builtins-elementwise.c
    M compiler-rt/test/orc/TestCases/Darwin/Generic/exceptions-stress-test-tower.cpp
    M compiler-rt/test/orc/TestCases/Darwin/Generic/exceptions.cpp
    M compiler-rt/test/orc/TestCases/Darwin/Generic/llvm-jitlink-force-link-objc.m
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-cross-file-method-call.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-nonlazy-class.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S
    M compiler-rt/test/orc/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/orc/lit.cfg.py
    M flang/include/flang/Optimizer/Dialect/FIRAttr.h
    M flang/include/flang/Support/LangOptions.def
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    A flang/test/Driver/check-integer-mod-zero-divisor.f90
    M flang/test/Lower/CUDA/cuda-managed-func-result.cuf
    M flang/test/Lower/Intrinsics/mod.f90
    M flang/test/Lower/Intrinsics/modulo.f90
    M flang/test/Lower/dummy-procedure.f90
    M llvm/include/llvm/IR/PassManager.h
    M llvm/lib/Target/AMDGPU/AMDGPUCoExecInfo.h
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/dead_instructions.ll
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]


  Commit: 66dedfab9094704910cb8c677e558e737fa80839
      https://github.com/llvm/llvm-project/commit/66dedfab9094704910cb8c677e558e737fa80839
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/Options/FlangOptions.td
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/lib/Driver/ToolChains/Flang.cpp
    R clang/test/CIR/CodeGen/call-conv-lowering-win64-skipped.c
    A clang/test/CIR/CodeGenBuiltins/builtin-maxnum-minnum.c
    M clang/test/CIR/CodeGenBuiltins/builtins-elementwise.c
    M compiler-rt/test/orc/TestCases/Darwin/Generic/exceptions-stress-test-tower.cpp
    M compiler-rt/test/orc/TestCases/Darwin/Generic/exceptions.cpp
    M compiler-rt/test/orc/TestCases/Darwin/Generic/llvm-jitlink-force-link-objc.m
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-category.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-cross-file-method-call.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/objc-nonlazy-class.S
    M compiler-rt/test/orc/TestCases/Darwin/arm64/trivial-objc-methods.S
    M compiler-rt/test/orc/TestCases/Darwin/lit.local.cfg.py
    M compiler-rt/test/orc/lit.cfg.py
    M flang/include/flang/Optimizer/Dialect/FIRAttr.h
    M flang/include/flang/Support/LangOptions.def
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    A flang/test/Driver/check-integer-mod-zero-divisor.f90
    M flang/test/Lower/CUDA/cuda-managed-func-result.cuf
    M flang/test/Lower/Intrinsics/mod.f90
    M flang/test/Lower/Intrinsics/modulo.f90
    M flang/test/Lower/dummy-procedure.f90
    M llvm/include/llvm/IR/PassManager.h
    M llvm/include/llvm/Transforms/IPO/LowerTypeTests.h
    M llvm/lib/Target/AMDGPU/AMDGPUCoExecInfo.h
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
    M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
    M llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/dead_instructions.ll
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  &

Created using spr 1.3.7


Compare: https://github.com/llvm/llvm-project/compare/cc7f7fe0b784...66dedfab9094

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list