diff options
author | Denis Revunov <revunov.denis@huawei-partners.com> | 2022-07-29 09:01:00 -0400 |
---|---|---|
committer | Denis Revunov <revunov.denis@huawei-partners.com> | 2022-08-18 11:08:47 -0400 |
commit | d0e29e87cdc8bb35490abb47e81d1b19823a0687 (patch) | |
tree | 9674e200c19e5faafda0511aaba159e6c8df5023 /bolt/lib/Passes/IdenticalCodeFolding.cpp | |
parent | 4a9ff289fbaa76e8a6c2ea0d566ed2aafedefe86 (diff) | |
download | llvm-d0e29e87cdc8bb35490abb47e81d1b19823a0687.zip llvm-d0e29e87cdc8bb35490abb47e81d1b19823a0687.tar.gz llvm-d0e29e87cdc8bb35490abb47e81d1b19823a0687.tar.bz2 |
[BOLT][AArch64] Ignore functions with islandsInfo during VeneerEliminarion and ICF
Differential Revision: https://reviews.llvm.org/D131881
Reviewed By: yota9
Diffstat (limited to 'bolt/lib/Passes/IdenticalCodeFolding.cpp')
-rw-r--r-- | bolt/lib/Passes/IdenticalCodeFolding.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bolt/lib/Passes/IdenticalCodeFolding.cpp b/bolt/lib/Passes/IdenticalCodeFolding.cpp index e6a92ec..98a8224 100644 --- a/bolt/lib/Passes/IdenticalCodeFolding.cpp +++ b/bolt/lib/Passes/IdenticalCodeFolding.cpp @@ -162,6 +162,9 @@ bool isIdenticalWith(const BinaryFunction &A, const BinaryFunction &B, if (A.isMultiEntry() || B.isMultiEntry()) return false; + if (A.hasIslandsInfo() || B.hasIslandsInfo()) + return false; + // Process both functions in either DFS or existing order. const BinaryFunction::BasicBlockOrderType OrderA = opts::UseDFS |