[all-commits] [llvm/llvm-project] fef62b: [InstCombine] Canonicalize `extractvalue + select`...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Wed Mar 13 23:07:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fef62be09c0d0aaa7f37144e260a4c03ad97f447
      https://github.com/llvm/llvm-project/commit/fef62be09c0d0aaa7f37144e260a4c03ad97f447
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-03-14 (Thu, 14 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    A llvm/test/Transforms/InstCombine/extract-select-agg.ll

  Log Message:
  -----------
  [InstCombine] Canonicalize `extractvalue + select` (#84686)

This patch canonicalizes `extractvalue (select Cond, TV, FV)` into
`select Cond, (extractvalue TV), (extractvalue FV)`. The latter form may
enable more optimizations.



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