[all-commits] [llvm/llvm-project] adf63e: Precommit tests

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Sep 29 06:55:32 PDT 2026


  Branch: refs/heads/users/lukel97/instcombine/sext-trunc-lshr-move-oneuse
  Home:   https://github.com/llvm/llvm-project
  Commit: adf63e845accf453ae34ff3ab85948e3339dd114
      https://github.com/llvm/llvm-project/commit/adf63e845accf453ae34ff3ab85948e3339dd114
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/test/Transforms/InstCombine/lshr-trunc-sext-to-ashr-sext.ll

  Log Message:
  -----------
  Precommit tests


  Commit: af0d31dc224030abff29ed36d85aff281a5806f2
      https://github.com/llvm/llvm-project/commit/af0d31dc224030abff29ed36d85aff281a5806f2
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/lshr-trunc-sext-to-ashr-sext.ll

  Log Message:
  -----------
  [InstCombine] Generalize sext (trunc (lshr Y, C)) -> sext/trunc (ashr Y, C) to other shift amounts


  Commit: eb28209b9b8303ff0b3647e3c319b800ff6eddd6
      https://github.com/llvm/llvm-project/commit/eb28209b9b8303ff0b3647e3c319b800ff6eddd6
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    A llvm/test/Transforms/InstCombine/AArch64/lshr-trunc-sext-to-ashr-sext.ll
    A llvm/test/Transforms/InstCombine/RISCV/lshr-trunc-sext-to-ashr-sext.ll
    A llvm/test/Transforms/InstCombine/X86/lshr-trunc-sext-to-ashr-sext.ll

  Log Message:
  -----------
  Precommit tests


  Commit: 658b98ee385a8e5bb968b9cd3fae2862a6692431
      https://github.com/llvm/llvm-project/commit/658b98ee385a8e5bb968b9cd3fae2862a6692431
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/AArch64/lshr-trunc-sext-to-ashr-sext.ll
    M llvm/test/Transforms/InstCombine/RISCV/lshr-trunc-sext-to-ashr-sext.ll
    M llvm/test/Transforms/InstCombine/X86/lshr-trunc-sext-to-ashr-sext.ll

  Log Message:
  -----------
  [InstCombine] Move sext(trunc(...)) combines before EvaluateInDifferentType


  Commit: 08f795073a40abfc3f6c8bda42a75822f13a5cf1
      https://github.com/llvm/llvm-project/commit/08f795073a40abfc3f6c8bda42a75822f13a5cf1
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/AArch64/lshr-trunc-sext-to-ashr-sext.ll
    M llvm/test/Transforms/InstCombine/RISCV/lshr-trunc-sext-to-ashr-sext.ll
    M llvm/test/Transforms/InstCombine/X86/lshr-trunc-sext-to-ashr-sext.ll

  Log Message:
  -----------
  [InstCombine] Move sext(trunc(lshr(...))) combine before same type combine

The same type sext(trunc(...)) combine will fire on the lshr case, but the lshr produces one less shift. Move it afterwards to give the lshr combine a chance to fire first. Fixes the motivating x264 case


Compare: https://github.com/llvm/llvm-project/compare/adf63e845acc%5E...08f795073a40

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