[all-commits] [llvm/llvm-project] 75c04b: [SimplifyCFG] Preserve !annotation in FoldBranchTo...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu Dec 17 06:12:27 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 75c04bfc61d6cc5623eadd8a04f86c315dacd823
https://github.com/llvm/llvm-project/commit/75c04bfc61d6cc5623eadd8a04f86c315dacd823
Author: Florian Hahn <flo at fhahn.com>
Date: 2020-12-17 (Thu, 17 Dec 2020)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
M llvm/test/Transforms/SimplifyCFG/annotations.ll
Log Message:
-----------
[SimplifyCFG] Preserve !annotation in FoldBranchToCommonDest.
When folding a branch to a common destination, preserve !annotation on
the created instruction, if the terminator of the BB that is going to be
removed has !annotation. This should ensure that !annotation is attached
to the instructions that 'replace' the original terminator.
Reviewed By: jdoerfert, lebedev.ri
Differential Revision: https://reviews.llvm.org/D93410
More information about the All-commits
mailing list