[all-commits] [llvm/llvm-project] 0e6dea: [InstCombine] Add Visited set to isOnlyCopiedFromC...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jan 11 08:12:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e6deaa2a062e43200aab9cb5e8a76e754441bd9
      https://github.com/llvm/llvm-project/commit/0e6deaa2a062e43200aab9cb5e8a76e754441bd9
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
    M llvm/test/Transforms/InstCombine/replace-alloca-phi.ll

  Log Message:
  -----------
  [InstCombine] Add Visited set to isOnlyCopiedFromConstantMemory()

I don't think this matters right now (because InstCombine cleans
up unreachable code early), but this will help to make sure that
we don't infinite loop once we handle phi nodes. The added test
is an example where this would happen.




More information about the All-commits mailing list