[all-commits] [llvm/llvm-project] 5f319f: [GVN] Add test for load GVN with dead block (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Mar 6 14:21:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f319fc444ca6c4b6b3905a026534d6d90acd37e
      https://github.com/llvm/llvm-project/commit/5f319fc444ca6c4b6b3905a026534d6d90acd37e
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-06 (Sat, 06 Mar 2021)

  Changed paths:
    A llvm/test/Transforms/GVN/load-dead-block.ll

  Log Message:
  -----------
  [GVN] Add test for load GVN with dead block (NFC)

What this test illustrates is that GVN inserts an unnecessary
phi node initially, which prevents alias analysis from establishing
NoAlias, and MDA caches that result. We would be able to fully fold
this after another -gvn run with clean MDA.




More information about the All-commits mailing list