[all-commits] [llvm/llvm-project] 06bc3b: [LICM] Allow hoisting of InsertElementInst's past ...

Ryan Buchner via All-commits all-commits at lists.llvm.org
Thu Jun 11 11:03:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06bc3b75f3697e848662201ac9e7769ccc2467ed
      https://github.com/llvm/llvm-project/commit/06bc3b75f3697e848662201ac9e7769ccc2467ed
  Author: Ryan Buchner <rbuchner at qti.qualcomm.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LICM.cpp
    A llvm/test/Transforms/LICM/vector-insert.ll

  Log Message:
  -----------
  [LICM] Allow hoisting of InsertElementInst's past non-hoistable InsertElementInsts (#200532)

When building vectors from multiple scalars in a loop, allow the
insertions using invariant data to be hoisted, even if blocked by the
variant insertions.

In the SLP vectorizer, c1b37eacbf makes the assumption that these build
vectors will properly be hoisted, when they are not leads to regressions
such as #195497.

Assisted By: Codex

---------

Co-authored-by: Luke Lau <luke_lau at icloud.com>
Co-authored-by: Nikita Popov <github at npopov.com>



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