[all-commits] [llvm/llvm-project] 0008af: [SROA] Allow as zext<i1> index when unfolding GEP ...

Alex MacLean via All-commits all-commits at lists.llvm.org
Fri Jul 4 08:16:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0008af882dc3f3b53b9e02440d7ca2b2e0725d11
      https://github.com/llvm/llvm-project/commit/0008af882dc3f3b53b9e02440d7ca2b2e0725d11
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2025-07-04 (Fri, 04 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/select-gep.ll

  Log Message:
  -----------
  [SROA] Allow as zext<i1> index when unfolding GEP select (#146929)

A zero-extension from an i1 is equivalent to a select with constant 0
and 1 values. Add this case when rewriting gep(select) -> select(gep) to
expose more opportunities for SROA.



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