[PATCH] D101141: [SimplifyCFG] Preserve metadata when unconditionalizing branches.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 23 00:14:55 PDT 2021


Meinersbur created this revision.
Meinersbur added reviewers: jeroen.dobbelaere, jdoerfert.
Meinersbur added a project: LLVM.
Herald added a subscriber: hiraditya.
Meinersbur requested review of this revision.

When replacing a conditional branch by an unconditional one because the condition is a constant, transfer the metadata to the new branch instruction.

Part of fix for llvm.org/PR50060


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101141

Files:
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/Transforms/SimplifyCFG/pr50060-constantfold-loopid.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101141.339904.patch
Type: text/x-patch
Size: 8557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210423/1b5c4e5c/attachment.bin>


More information about the llvm-commits mailing list