[llvm] 899352c - [Hexagon] Skip function in Hexagon vector combine if requested
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 28 07:24:25 PDT 2021
Author: Krzysztof Parzyszek
Date: 2021-04-28T09:24:08-05:00
New Revision: 899352c7b4844541df1b2f9eaa769d79231e9391
URL: https://github.com/llvm/llvm-project/commit/899352c7b4844541df1b2f9eaa769d79231e9391
DIFF: https://github.com/llvm/llvm-project/commit/899352c7b4844541df1b2f9eaa769d79231e9391.diff
LOG: [Hexagon] Skip function in Hexagon vector combine if requested
Add a call to skipFunction().
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
index 57ef4470dbb11..1438381ce1bfe 100644
--- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
@@ -1457,6 +1457,8 @@ class HexagonVectorCombineLegacy : public FunctionPass {
}
bool runOnFunction(Function &F) override {
+ if (skipFunction(F))
+ return false;
AliasAnalysis &AA = getAnalysis<AAResultsWrapperPass>().getAAResults();
AssumptionCache &AC =
getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F);
More information about the llvm-commits
mailing list