[all-commits] [llvm/llvm-project] 8d5b7f: [InstCombine] Fix incorrect insert point when fold...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Sat Jun 6 12:18:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d5b7f729e07d5394746ae868adabc8b327d94cf
      https://github.com/llvm/llvm-project/commit/8d5b7f729e07d5394746ae868adabc8b327d94cf
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2026-06-06 (Sat, 06 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    M llvm/test/Transforms/InstCombine/fold-zext-of-deinterleave.ll

  Log Message:
  -----------
  [InstCombine] Fix incorrect insert point when folding zext of deinterleave (#201977)

Fix invalid module crash in
https://github.com/llvm/llvm-project/pull/195330#issuecomment-4635245035

The problem was caused by incorrect IRBuilder insertion point. The
insertion point used when generating new instructions might not dominate
all the de-interleave fields users. This patch fixes this issue by
explicitly setting the insertion point to either
`llvm.vector.deinterleave2` or the earliest `shufflevector` instruction
(in the de-interleaving group) within the same basicblock.



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