[all-commits] [llvm/llvm-project] 94a98c: [InstCombine] Remove dead phi web (#108876)

Chengjun via All-commits all-commits at lists.llvm.org
Wed Sep 18 01:05:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94a98cf5dc9317ba8b01c31443ca563808323d11
      https://github.com/llvm/llvm-project/commit/94a98cf5dc9317ba8b01c31443ca563808323d11
  Author: Chengjun <chengjunp at Nvidia.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
    M llvm/test/Transforms/InstCombine/phi.ll

  Log Message:
  -----------
  [InstCombine] Remove dead phi web (#108876)

In current visitPHINode function during InstCombine, it can remove dead
phi cycles (all phis have one use, which is another phi). However, it
cannot deal with the case when the phis form a web (all phis have one or
more uses, and all the uses are phi). This change extends the algorithm
so that it can also deal with the dead phi web.



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