[llvm] [Hexagon] Add Hexagon Copy Hoisting pass (PR #89313)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 20 05:16:37 PDT 2024
================
@@ -0,0 +1,280 @@
+//===--------- HexagonCopyHoisting.cpp - Hexagon Copy Hoisting ----------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+// The purpose of this pass is to move the copy instructions that are
+// present in all the successor of a basic block (BB) to the end of BB.
+//===----------------------------------------------------------------------===//
+
+#include "HexagonTargetMachine.h"
+#include "llvm/ADT/PostOrderIterator.h"
+#include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringMap.h"
----------------
kparzysz wrote:
I think this include can be removed (replaced with include of DenseMap.h). DenseMap.h seems to be included indirectly by some other header file, but it's a good idea to include it directly (in case something changes in that other header file).
https://github.com/llvm/llvm-project/pull/89313
More information about the llvm-commits
mailing list