diff options
author | Rithik Sharma <rithiksh02@gmail.com> | 2020-05-27 18:00:06 +0000 |
---|---|---|
committer | Whitney Tsang <whitneyt@ca.ibm.com> | 2020-05-27 18:02:06 +0000 |
commit | eadf2959567c89bebff153feac873cbc1b71eb04 (patch) | |
tree | 7c94d08e1bb3f32223eff60cec82cc62056aec8f /llvm/lib/Support/CommandLine.cpp | |
parent | b9c6871a9570975827dc0bbeb39131c99c8daf8e (diff) | |
download | llvm-eadf2959567c89bebff153feac873cbc1b71eb04.zip llvm-eadf2959567c89bebff153feac873cbc1b71eb04.tar.gz llvm-eadf2959567c89bebff153feac873cbc1b71eb04.tar.bz2 |
[CodeMoverUtils] Use dominator tree level to decide the direction of
code motion
Summary: Currently isSafeToMoveBefore uses DFS numbering for determining
the relative position of instruction and insert point which is not
always correct. This PR proposes the use of Dominator Tree depth for the
same. If a node is at a higher level than the insert point then it is
safe to say that we want to move in the forward direction.
Authored By: RithikSharma
Reviewer: Whitney, nikic, bmahjour, etiotto, fhahn
Reviewed By: Whitney
Subscribers: fhahn, hiraditya, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D80084
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions