LLVM/project 8723e4allvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.h GCNSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU coexec-mfma-interleave-gfx950.ll coexec-block-carried-latency.mir

[AMDGPU] Add block carried latency to CoExecSched (#192324)

This adds some rudimentary logic to check for load dependencies across
blocks. Since the scheduling algorithm is local scheduling per region,
we do not have about latencies carried from other blocks. Rather than
constructing a global DAG to accurately measure these latencies, this PR
uses a heuristic to estimate the incoming latency.

We limit our incoming dependencies to load instructions, as these are
expected to be the ones that cause problems. This uses the full latency
of the instruction as the incoming latency to cover. We check for any
use that occurred later in the def block - if we find such a use then we
do not have incoming latency as we have already waited for the load.
Using the incoming latency assumes that the load is the last instruction
in the block, and that the branch takes 0 cycles. Aside from not fully
understanding the dependencies of other blocks, a challenge in defining
a more accurate incoming latency is that it is possible that the block
with the load may be rescheduled.


    [2 lines not shown]
DeltaFile
+897-3llvm/test/CodeGen/AMDGPU/coexec-scheduler.ll
+240-81llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+201-0llvm/test/CodeGen/AMDGPU/coexec-block-carried-latency.mir
+0-36llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+26-5llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.h
+5-5llvm/test/CodeGen/AMDGPU/coexec-mfma-interleave-gfx950.ll
+1,369-1303 files not shown
+1,372-1389 files

FreeBSD/ports ed8403fmath/py-SQNomad Makefile, math/py-SQNomad/files patch-setup.py

math/py-SQNomad: Unbreak
DeltaFile
+14-3math/py-SQNomad/files/patch-setup.py
+1-3math/py-SQNomad/Makefile
+15-62 files

FreeBSD/ports 945ff0baudio/lvtk Makefile, audio/lvtk/files patch-waflib_Context.py

audio/lvtk: Unbreak
DeltaFile
+25-0audio/lvtk/files/patch-waflib_Context.py
+1-4audio/lvtk/Makefile
+26-42 files

FreeBSD/ports 86b3f9baudio/lv2proc Makefile, audio/lv2proc/files patch-src_Makefile.in

audio/lv2proc: Unbreak
DeltaFile
+15-0audio/lv2proc/files/patch-src_Makefile.in
+0-2audio/lv2proc/Makefile
+15-22 files

OpenBSD/src rAqgLPqusr.sbin/vmd mc146818.c

   vmd: Fix some broken interrupt behavior in mc146818 rtc

   Fix a few issues discovered during development of mp support.

   ok dv
VersionDeltaFile
1.33+22-9usr.sbin/vmd/mc146818.c
+22-91 files

FreeBSD/ports d7f694fdevel/opengrok Makefile

devel/opengrok: transfer maintanership

Siva Mahadevan <siva at FreeBSD.org> is the new MAINTAINER.
DeltaFile
+1-1devel/opengrok/Makefile
+1-11 files

NetBSD/src xQ6knI8sys/arch/mac68k/obio ascaudio.c

   Avoid use of lock before inited.

   Patch and testing by Ray Tran.
VersionDeltaFile
1.23+10-9sys/arch/mac68k/obio/ascaudio.c
+10-91 files

NetBSD/src PPhsLIDsys/arch/mac68k/obio ascaudio.c

   Respect maximum and minimum values when recording.

   Patch and testing by Ray Tran.
VersionDeltaFile
1.22+9-4sys/arch/mac68k/obio/ascaudio.c
+9-41 files

NetBSD/src 5YnnW0lsys/arch/mac68k/obio ascaudio.c

   Fix typo for building ascaudio(4) as a module.

   Patch and testing by Ray Tran.
VersionDeltaFile
1.21+7-7sys/arch/mac68k/obio/ascaudio.c
+7-71 files

NetBSD/src 4qa7pXIsys/arch/mac68k/obio ascaudio.c

   Honor playback block size within resonable limits.

   Patch and testing by Ray Tran.
VersionDeltaFile
1.20+14-7sys/arch/mac68k/obio/ascaudio.c
+14-71 files

NetBSD/src gz1g1bnsys/arch/mac68k/obio ascaudio.c

   Return early if aux.interrupts.

   Patch and testing by Ray Tran.
VersionDeltaFile
1.19+5-2sys/arch/mac68k/obio/ascaudio.c
+5-21 files

LLVM/project aac546bllvm/cmake/modules AddLLVM.cmake

[CMake] Clean up factored lit dependency names

Replace the opaque SHA1-based stamp and anchor names with readable names
based on the lit project. Document why the symbolic outputs and internal
anchor target are needed.

Warn once when the active project minimum reaches CMake 3.27, making the
compatibility fallback obsolete.
DeltaFile
+17-5llvm/cmake/modules/AddLLVM.cmake
+17-51 files

OpenBSD/ports tW6HxBwsecurity/opm Makefile distinfo

   update to 1.6
VersionDeltaFile
1.7+2-2security/opm/distinfo
1.8+1-1security/opm/Makefile
+3-32 files

LLVM/project 182ca95llvm/lib/IR Verifier.cpp, llvm/test/Verifier funclet-unreachable-block.ll

[Verifier] Don't look up the funclet color of an unreachable block (#222500)

Fixes #192015.
DeltaFile
+23-17llvm/lib/IR/Verifier.cpp
+17-0llvm/test/Verifier/funclet-unreachable-block.ll
+40-172 files

LLVM/project 6a31f4cllvm/lib/Target/AMDGPU SIFoldOperands.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.alignbyte.ll true16-fold.mir

fold sgpr32 via vgpr16
DeltaFile
+116-12llvm/test/CodeGen/AMDGPU/true16-fold.mir
+26-58llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+57-0llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+4-11llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
+1-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.alignbyte.ll
+2-2llvm/test/CodeGen/AMDGPU/GlobalISel/fshr-new-regbank-select.ll
+206-861 files not shown
+207-887 files

LLVM/project fb68217llvm/lib/Target/AMDGPU SIInstrInfo.h SIInstrInfo.cpp, llvm/test/CodeGen/AMDGPU lit.local.cfg

add machine verifier check
DeltaFile
+84-3llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+3-0llvm/lib/Target/AMDGPU/SIInstrInfo.h
+2-0llvm/test/CodeGen/AMDGPU/lit.local.cfg
+89-33 files

LLVM/project 31ba9fbllvm/test/CodeGen/AMDGPU llvm.amdgcn.image.d16.dim.ll float-to-arbitrary-fp-fp8-hw.ll

fix pattern
DeltaFile
+8,380-1llvm/test/CodeGen/AMDGPU/schedule-amdgpu-trackers.ll
+1,481-1,527llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-widen.ll
+1,021-1,456llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.64bit.ll
+172-359llvm/test/CodeGen/AMDGPU/bf16.ll
+210-215llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-fp8-hw.ll
+359-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.d16.dim.ll
+11,623-3,55833 files not shown
+12,685-4,58839 files

LLVM/project daad92bllvm/test/CodeGen/AMDGPU flat-atomicrmw-fmax.ll flat-atomicrmw-fadd.ll

rebase and update test
DeltaFile
+3,288-3,225llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+2,102-1,533llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll
+1,514-1,093llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.64bit.ll
+1,141-782llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll
+542-1,095llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fmax.ll
+542-1,095llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fadd.ll
+9,129-8,82346 files not shown
+16,525-19,50352 files

LLVM/project d9ba48ellvm/test/CodeGen/AMDGPU amdgcn.bitcast.96bit.ll amdgcn.bitcast.64bit.ll

calling conv update
DeltaFile
+6,170-6,382llvm/test/CodeGen/AMDGPU/bf16.ll
+2,693-2,459llvm/test/CodeGen/AMDGPU/minimumnum.bf16.ll
+2,693-2,459llvm/test/CodeGen/AMDGPU/maximumnum.bf16.ll
+2,257-2,804llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll
+1,437-1,838llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.64bit.ll
+1,341-1,683llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll
+16,591-17,625158 files not shown
+39,905-35,725164 files

LLVM/project 46436bellvm/test/CodeGen/AMDGPU fptoui-sat-scalar.ll usubsat.ll, llvm/test/CodeGen/AMDGPU/GlobalISel llvm.amdgcn.raw.tbuffer.store.f16.ll combine-fma-add-fma-mul.ll

update test
DeltaFile
+434-434llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-fma-mul.ll
+146-218llvm/test/CodeGen/AMDGPU/fptoui-sat-vector.ll
+106-170llvm/test/CodeGen/AMDGPU/gfx-callable-argument-types.ll
+134-134llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.tbuffer.store.f16.ll
+42-89llvm/test/CodeGen/AMDGPU/usubsat.ll
+13-41llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll
+875-1,0869 files not shown
+1,006-1,26315 files

LLVM/project a1166edllvm/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/test/CodeGen/AMDGPU fminimum3.ll fmaximum3.ll

legalizeOpWithMove check for sgpr32 to vgpr16 case
DeltaFile
+36-39llvm/test/CodeGen/AMDGPU/select.f16.ll
+32-36llvm/test/CodeGen/AMDGPU/bf16.ll
+4-8llvm/test/CodeGen/AMDGPU/minmax.ll
+10-1llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+2-2llvm/test/CodeGen/AMDGPU/fminimum3.ll
+2-2llvm/test/CodeGen/AMDGPU/fmaximum3.ll
+86-884 files not shown
+91-9410 files

LLVM/project e10b4a1llvm/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/test/CodeGen/AMDGPU constant-bus-illegal-fold-true16.ll

added mir test
DeltaFile
+54-0llvm/test/CodeGen/AMDGPU/constant-bus-illegal-fold-true16.ll
+1-1llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+55-12 files

LLVM/project f5d0b36llvm/test/CodeGen/AMDGPU amdgcn.bitcast.96bit.ll amdgcn.bitcast.64bit.ll

rebase and update test
DeltaFile
+4,514-4,291llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+2,630-2,495llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+1,272-1,259llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+610-596llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll
+452-453llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.64bit.ll
+406-397llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll
+9,884-9,4914 files not shown
+9,990-9,59310 files

LLVM/project 3168070llvm/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/test/CodeGen/AMDGPU fminimum3.ll fmaximum3.ll

split legalizeOpWithMove
DeltaFile
+39-36llvm/test/CodeGen/AMDGPU/select.f16.ll
+36-32llvm/test/CodeGen/AMDGPU/bf16.ll
+8-4llvm/test/CodeGen/AMDGPU/minmax.ll
+0-9llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+2-2llvm/test/CodeGen/AMDGPU/fminimum3.ll
+2-2llvm/test/CodeGen/AMDGPU/fmaximum3.ll
+87-854 files not shown
+93-9010 files

LLVM/project c4e8e11llvm/test/CodeGen/AMDGPU amdgcn.bitcast.128bit.ll float-to-arbitrary-fp-widen.ll

address comment, add sgpr32 reg_seq optimization and hi16 fix
DeltaFile
+6,154-6,576llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+2,754-2,970llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+2,433-2,655llvm/test/CodeGen/AMDGPU/minimumnum.bf16.ll
+2,433-2,655llvm/test/CodeGen/AMDGPU/maximumnum.bf16.ll
+1,441-1,431llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-widen.ll
+673-705llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll
+15,888-16,99239 files not shown
+18,542-20,37845 files

LLVM/project 2daaaa9llvm/test/CodeGen/AMDGPU amdgcn.bitcast.832bit.ll amdgcn.bitcast.256bit.ll

Legalize sgpr16 in sdag
DeltaFile
+26,193-18,947llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+10,727-8,485llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+5,708-2,866llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+5,324-2,688llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+4,605-3,063llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+4,942-2,490llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+57,499-38,539126 files not shown
+105,453-71,135132 files

OpenBSD/ports A3aqgdzdevel/spidermonkey140 Makefile, devel/spidermonkey140/patches patch-config_check_spidermonkey_style_py patch-mfbt_Casting_h

   Prevent the vendored fmt headers from being shadowed by devel/fmt.

   this _should_ fix errors tb@ is seeing when building x11/gnome/gjs and dpb
   junks fmt.
VersionDeltaFile
1.1+21-0devel/spidermonkey140/patches/patch-mfbt_Casting_h
1.1+21-0devel/spidermonkey140/patches/patch-js_public_experimental_LoggingInterface_h
1.1+14-0devel/spidermonkey140/patches/patch-config_check_spidermonkey_style_py
1.16+2-0devel/spidermonkey140/Makefile
+58-04 files

LLVM/project ef326feclang/test/CodeGenHLSL/builtins ldexp.hlsl ddy.hlsl, clang/test/SemaHLSL/BuiltIns ldexp-errors.hlsl

[HLSL][LongVec] Add more intrinsic support (#222043)

resolves #220699
resolves #220655
resolves #220639
resolves #220638
resolves #220614
DeltaFile
+46-1clang/test/CodeGenHLSL/builtins/mad.hlsl
+34-7clang/test/CodeGenHLSL/builtins/asdouble.hlsl
+0-8clang/test/SemaHLSL/BuiltIns/ldexp-errors.hlsl
+7-0clang/test/CodeGenHLSL/builtins/ddy.hlsl
+7-0clang/test/CodeGenHLSL/builtins/ddx.hlsl
+6-0clang/test/CodeGenHLSL/builtins/ldexp.hlsl
+100-161 files not shown
+105-167 files

LLVM/project bb65118lldb/include/lldb/Interpreter/Interfaces ScriptedFrameInterface.h, lldb/include/lldb/Target StackFrameRecognizer.h

[lldb] Report a scripted frame's variables with the frame's value type (#221708)

A scripted frame's variable exists as two objects: a Variable holding
the scope the frame assigned it, and a ValueObject holding what the
frame built. SBValue::GetValueType() reports the ValueObject's, and
GetValueObjectForFrameVariable handed that ValueObject back unchanged,
so the scope never reached a client. A ValueObject built in Python is a
ValueObjectConstResult, which reports how it was produced rather than
which variable it stands for, leaving anything that groups a frame's
variables by scope unable to place it. `frame variable` was unaffected
because it reads the Variables directly.

This patch presents the ValueObject under that scope instead. A class
for this already existed as ValueObjectRecognizerSynthesizedValue, which
frame recognizers use to name an argument: both take a ValueObject that
cannot report the ValueType it is being presented as and supply that
ValueType for it, so generalize that one into
ValueObjectSynthesizedValue and use it for both. ValueObjectVariable is
the other class that pairs a ValueObject with a ValueType, but it cannot

    [28 lines not shown]
DeltaFile
+71-0lldb/source/ValueObject/ValueObjectSynthesizedValue.cpp
+65-0lldb/include/lldb/ValueObject/ValueObjectSynthesizedValue.h
+4-36lldb/include/lldb/Target/StackFrameRecognizer.h
+21-2lldb/source/Plugins/Process/scripted/ScriptedFrame.cpp
+17-0lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py
+13-1lldb/include/lldb/Interpreter/Interfaces/ScriptedFrameInterface.h
+191-392 files not shown
+192-428 files

LLVM/project 81c7e6ellvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.h AMDGPUCoExecSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU coexec-sched-ds-fifo.mir coexec-block-carried-latency.mir

Address comments.

Avoid prioritizing DMA and fence candidates while they still have an effective stall.

Make the top-down requirement explicit and remove unreachable bottom-up handling.
DeltaFile
+41-42llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+29-0llvm/test/CodeGen/AMDGPU/coexec-sched-effective-stall.mir
+14-1llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.h
+1-1llvm/test/CodeGen/AMDGPU/coexec-sched-ds-fifo.mir
+1-1llvm/test/CodeGen/AMDGPU/coexec-block-carried-latency.mir
+86-455 files