[all-commits] [llvm/llvm-project] 5e7e49: [JumpThreading] Clone noalias.scope.decl when thre...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Feb 22 09:36:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e7e499b912d2c9ebaa91b5783ca123dbedeabcc
      https://github.com/llvm/llvm-project/commit/5e7e499b912d2c9ebaa91b5783ca123dbedeabcc
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/Cloning.h
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/lib/Transforms/Utils/CloneFunction.cpp
    A llvm/test/Transforms/JumpThreading/noalias-scope-decl.ll

  Log Message:
  -----------
  [JumpThreading] Clone noalias.scope.decl when threading blocks

When cloning instructions during jump threading, also clone and
adapt any declared scopes. This is primarily important when
threading loop exits, because we'll end up with two dominating
scope declarations in that case (at least after additional loop
rotation). This addresses a loose thread from
https://reviews.llvm.org/rG2556b413a7b8#975012.

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




More information about the All-commits mailing list