[all-commits] [llvm/llvm-project] 86a445: [InstCombine] Add generic smulh/umulh identity fol...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 1 03:12:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86a445a3f6e3ee145fd9523a6360626b1df99fd1
      https://github.com/llvm/llvm-project/commit/86a445a3f6e3ee145fd9523a6360626b1df99fd1
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    A llvm/test/Transforms/InstCombine/smulh.ll
    A llvm/test/Transforms/InstCombine/umulh.ll

  Log Message:
  -----------
  [InstCombine] Add generic smulh/umulh identity folds (#227335)

Added baseline smulh/umulh tests branched from equivalent x86 pmulh/pmulhu tests

Added generic generic smulh/umulh identity folds that match the x86 pmulh (commutative) folds:
    [su]mulh(x,undef) -> 0
    [su]mulh(x,0) -> 0
    umulh(x,1) -> 0
    smulh(x,1) -> sra(x,bw-1) // signsplat

Prep work for #223627



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