[all-commits] [llvm/llvm-project] 64249f: [CodeExtractor] Fix extraction of a value used onl...

Ehud Katz via All-commits all-commits at lists.llvm.org
Sat Apr 25 01:46:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 64249f177e4644cfe3a0ba80ade274175771950c
      https://github.com/llvm/llvm-project/commit/64249f177e4644cfe3a0ba80ade274175771950c
  Author: Ehud Katz <ehudkatz at gmail.com>
  Date:   2020-04-25 (Sat, 25 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    A llvm/test/Transforms/CodeExtractor/LoopExtractor_alloca.ll

  Log Message:
  -----------
  [CodeExtractor] Fix extraction of a value used only by intrinsics outside of region

We should only skip `lifetime` and `dbg` intrinsics when searching for users.
Other intrinsics are legit users that can't be ignored.

Without this fix, the testcase would result in an invalid IR. `memcpy`
will have a reference to the, now, external value (local to the
extracted loop function).

Fix PR42194

Differential Revision: https://reviews.llvm.org/D78749




More information about the All-commits mailing list