[PATCH] D97154: [JumpThreading] Clone noalias.scope.decl when threading blocks
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 21 07:47:20 PST 2021
nikic created this revision.
nikic added reviewers: jeroen.dobbelaere, jdoerfert.
Herald added a subscriber: hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97154
Files:
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/lib/Transforms/Utils/CloneFunction.cpp
llvm/test/Transforms/JumpThreading/noalias-scope-decl.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97154.325308.patch
Type: text/x-patch
Size: 5112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210221/c6be4ae1/attachment.bin>
More information about the llvm-commits
mailing list