[all-commits] [llvm/llvm-project] ff0cbe: [RISCV] Add a non-template version of SelectAddrRe...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jul 20 00:52:19 PDT 2025


  Branch: refs/heads/users/MaskRay/spr/main.mc-refactor-ft_align-fragments-when-linker-relaxation-is-enabled
  Home:   https://github.com/llvm/llvm-project
  Commit: ff0cbecb68bd28f6131894fbb037e063e8da6bab
      https://github.com/llvm/llvm-project/commit/ff0cbecb68bd28f6131894fbb037e063e8da6bab
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-07-19 (Sat, 19 Jul 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h

  Log Message:
  -----------
  [RISCV] Add a non-template version of SelectAddrRegZextRegScale and move code there. NFC

The template versions now call the non-template version. This
avoids duplicating the code for each template.


  Commit: d77ac81e93e5e2df5275b687b53049d9acfe1357
      https://github.com/llvm/llvm-project/commit/d77ac81e93e5e2df5275b687b53049d9acfe1357
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-19 (Sat, 19 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCAsmBackend.h
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

  Log Message:
  -----------
  X86AsmBackend: Remove some overhead from auto padding feature

MCObjectStreamer::emitInstructionImpl is hot.
Devirtualize allowEnhancedRelaxation introduced by
https://reviews.llvm.org/D76286


  Commit: e7ac49977a3e8ee8f9716ffa43619ff41af7dfb2
      https://github.com/llvm/llvm-project/commit/e7ac49977a3e8ee8f9716ffa43619ff41af7dfb2
  Author: Jasmine Tang <jjasmine at igalia.com>
  Date:   2025-07-19 (Sat, 19 Jul 2025)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.exp.ll
    M llvm/test/CodeGen/AMDGPU/llvm.exp10.ll
    M llvm/test/CodeGen/AMDGPU/llvm.exp2.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log10.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log2.ll
    M llvm/test/Transforms/InstSimplify/exp10.ll
    M llvm/test/Transforms/InstSimplify/fold-intrinsics.ll
    M llvm/unittests/Analysis/ValueTrackingTest.cpp

  Log Message:
  -----------
  [InstSimplify] Add poison propagation for trivially vectorizable intrinsics (#149243)

Fixes https://github.com/llvm/llvm-project/issues/146769

Test cases added to
`llvm/test/Transforms/InstSimplify/fold-intrinsics.ll`


  Commit: 58c3affdaa732fd6f8c7e6640396e7c6366bac9d
      https://github.com/llvm/llvm-project/commit/58c3affdaa732fd6f8c7e6640396e7c6366bac9d
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M libclc/utils/CMakeLists.txt

  Log Message:
  -----------
  [libclc] Expose `prepare_builtins_*` variables in top-level CMakeLists (#149657)

Fix `libclc/utils/CMakeLists.txt` to expose `prepare_builtins_*`
variables in parent scope. This was a regression introduced in #148815
where the code was moved into subdirectory, and the variables would no
longer be accessible to calls in top-level CMakeLists, resulting in
attempting to build targets with empty command:

```
[1566/1676] cd /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build && -o /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build/clspv--.bc /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build/obj.libclc.dir/clspv--/builtins.opt.clspv--.bc
FAILED: clspv--.bc /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build/clspv--.bc
cd /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build && -o /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build/clspv--.bc /var/tmp/portage/llvm-core/libclc-22.0.0.9999/work/libclc_build/obj.libclc.dir/clspv--/builtins.opt.clspv--.bc
/bin/sh: line 1: -o: command not found
```


  Commit: 51af47e53c32d29c0e29cbdcd66d8bbd41b673f3
      https://github.com/llvm/llvm-project/commit/51af47e53c32d29c0e29cbdcd66d8bbd41b673f3
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Context.cpp
    M clang/lib/AST/ByteCode/Context.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/Sema/warn-fortify-source.c

  Log Message:
  -----------
  [clang][bytecode] Use in Expr::tryEvaluateStrLen() (#149677)

Fixes #138475


  Commit: 9e587ce6f0da91ee71dd6920dff0930b291169bb
      https://github.com/llvm/llvm-project/commit/9e587ce6f0da91ee71dd6920dff0930b291169bb
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SCCPSolver.cpp
    A llvm/test/Transforms/SCCP/uscmp.ll

  Log Message:
  -----------
  [SCCP] Simplify [us]cmp(X, Y) into X - Y (#144717)

If the difference between [us]cmp's operands is not greater than 1, we
can simplify it into `X - Y`.
Alive2: https://alive2.llvm.org/ce/z/JS55so
llvm-opt-benchmark diff:
https://github.com/dtcxzyw/llvm-opt-benchmark/pull/2464/files


  Commit: 5ee34ff1e5cc952116f0da943ddaeb1a71db2940
      https://github.com/llvm/llvm-project/commit/5ee34ff1e5cc952116f0da943ddaeb1a71db2940
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/WinCOFFObjectWriter.cpp
    M llvm/test/MC/COFF/bss-text.s
    M llvm/test/MC/COFF/section.s
    M llvm/test/MC/ELF/nobits-non-zero-value.s

  Log Message:
  -----------
  MC: Optimize emitInstruction and simplify fragment-in-BSS check

Move the FT_Relaxable-in-BSS check from frequently-called
MCObjectStreamer::emitInstruction to MCAssembler::writeSectionData,
along with existing checks for other fragment types. For the uncommon
diagnostics, losing the location information is acceptable.


  Commit: 2ba5e0ad1789f33c71af15d7c09cc5ca874cf7b1
      https://github.com/llvm/llvm-project/commit/2ba5e0ad1789f33c71af15d7c09cc5ca874cf7b1
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCAsmBackend.h
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/include/llvm/MC/MCSection.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCExpr.cpp
    M llvm/lib/MC/MCFragment.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/WasmObjectWriter.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.h
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
    M llvm/test/MC/ELF/mc-dump.s
    M llvm/test/MC/RISCV/Relocations/mc-dump.s

  Log Message:
  -----------
  MC: Encode FT_Align in fragment's variable-size tail

Follow-up to #148544

Pull Request: https://github.com/llvm/llvm-project/pull/149030


  Commit: c78e81d8283954ab86b727b3a0dfb00349764bcc
      https://github.com/llvm/llvm-project/commit/c78e81d8283954ab86b727b3a0dfb00349764bcc
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Context.cpp
    M clang/lib/AST/ByteCode/Context.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/Sema/warn-fortify-source.c
    M libclc/utils/CMakeLists.txt
    M llvm/include/llvm/MC/MCAsmBackend.h
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/WinCOFFObjectWriter.cpp
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
    M llvm/lib/Transforms/Utils/SCCPSolver.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.exp.ll
    M llvm/test/CodeGen/AMDGPU/llvm.exp10.ll
    M llvm/test/CodeGen/AMDGPU/llvm.exp2.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log10.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log2.ll
    M llvm/test/MC/COFF/bss-text.s
    M llvm/test/MC/COFF/section.s
    M llvm/test/MC/ELF/nobits-non-zero-value.s
    M llvm/test/Transforms/InstSimplify/exp10.ll
    M llvm/test/Transforms/InstSimplify/fold-intrinsics.ll
    A llvm/test/Transforms/SCCP/uscmp.ll
    M llvm/unittests/Analysis/ValueTrackingTest.cpp

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

Created using spr 1.3.5-bogner

[skip ci]


Compare: https://github.com/llvm/llvm-project/compare/7d015e2c6fd4...c78e81d82839

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