From 841431b5d811c8bdebb9058766dafde3b531e718 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 28 Apr 2021 08:57:20 -0500 Subject: [PATCH] [Hexagon] Skip function in Hexagon vector combine if requested Add a call to skipFunction(). --- lib/Target/Hexagon/HexagonVectorCombine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/Hexagon/HexagonVectorCombine.cpp b/lib/Target/Hexagon/HexagonVectorCombine.cpp index 57ef4470dbb..1438381ce1b 100644 --- a/lib/Target/Hexagon/HexagonVectorCombine.cpp +++ b/lib/Target/Hexagon/HexagonVectorCombine.cpp @@ -1457,6 +1457,8 @@ public: } bool runOnFunction(Function &F) override { + if (skipFunction(F)) + return false; AliasAnalysis &AA = getAnalysis().getAAResults(); AssumptionCache &AC = getAnalysis().getAssumptionCache(F);