[all-commits] [llvm/llvm-project] 751be2: [CodeMoverUtils] Enhance isSafeToMoveBefore() when...
CongzheUalberta via All-commits
all-commits at lists.llvm.org
Fri Sep 24 02:52:38 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 751be2a064f119af74c7b9b1e52bc904d8aa114d
https://github.com/llvm/llvm-project/commit/751be2a064f119af74c7b9b1e52bc904d8aa114d
Author: Congzhe Cao <congzhe.cao at huawei.com>
Date: 2021-09-24 (Fri, 24 Sep 2021)
Changed paths:
M llvm/include/llvm/Transforms/Utils/CodeMoverUtils.h
M llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
M llvm/unittests/Transforms/Utils/CodeMoverUtilsTest.cpp
Log Message:
-----------
[CodeMoverUtils] Enhance isSafeToMoveBefore() when moving BBs
When moving an entire basic block BB before InsertPoint, currently
we check for all instructions whether the operands dominates
InsertPoint, however, this can be improved such that even an
operand does not dominate InsertPoint, as long as it appears as
a previous instruction in the same BB, it is safe to move.
Reviewed By: Whitney
Differential Revision: https://reviews.llvm.org/D110378
More information about the All-commits
mailing list