[all-commits] [llvm/llvm-project] b99466: [SimplifyCFG] Preserve metadata when unconditional...
Michael Kruse via All-commits
all-commits at lists.llvm.org
Mon Apr 26 15:23:26 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b99466eb4525b151508d8f1a054d7a7fb4731c03
https://github.com/llvm/llvm-project/commit/b99466eb4525b151508d8f1a054d7a7fb4731c03
Author: Michael Kruse <llvm-project at meinersbur.de>
Date: 2021-04-26 (Mon, 26 Apr 2021)
Changed paths:
M llvm/lib/Transforms/Utils/Local.cpp
A llvm/test/Transforms/SimplifyCFG/commondest-loopid.ll
Log Message:
-----------
[SimplifyCFG] Preserve metadata when unconditionalizing branches (same target).
When replacing a conditional branch by an unconditional one because the targets are identical, transfer the metadata to the new branch instruction.
Reviewed By: lebedev.ri
Differential Revision: https://reviews.llvm.org/D101226
More information about the All-commits
mailing list