[all-commits] [llvm/llvm-project] 95b1b6: [InstCombine] Remove binop(concat(x, y), concat(a, b)...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Aug 7 01:59:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95b1b6d95b0b7152572ba2436e62ad54ea7de691
      https://github.com/llvm/llvm-project/commit/95b1b6d95b0b7152572ba2436e62ad54ea7de691
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/fold-zext-of-deinterleave.ll
    R llvm/test/Transforms/InstCombine/vector-concat-binop-inseltpoison.ll
    R llvm/test/Transforms/InstCombine/vector-concat-binop.ll
    M llvm/test/Transforms/PhaseOrdering/X86/addsub-inseltpoison.ll
    M llvm/test/Transforms/PhaseOrdering/X86/addsub.ll

  Log Message:
  -----------
  [InstCombine] Remove binop(concat(x,y),concat(a,b)) -> concat(binop(x,a),binop(y,b)) fold (#214285)

A similar fold is cost-driven in VectorCombine, but this InstCombine
fold was then undoing the decision

Seems to an old fold added by @rotateright (#32373) before we created
VectorCombine to do this properly

Fixes #205707



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